rename unity packetinfo source

This commit is contained in:
sirjonasxx 2021-04-27 04:26:23 +02:00
parent b41ac108af
commit 0a0ee6a150
2 changed files with 5 additions and 5 deletions

View File

@ -3,7 +3,7 @@ package gearth.services.packet_info;
import gearth.services.packet_info.providers.RemotePacketInfoProvider;
import gearth.services.packet_info.providers.implementations.HarblePacketInfoProvider;
import gearth.services.packet_info.providers.implementations.SulekPacketInfoProvider;
import gearth.services.packet_info.providers.implementations.UnityPacketInfoProvider;
import gearth.services.packet_info.providers.implementations.GEarthUnityPacketInfoProvider;
import gearth.protocol.HMessage;
import gearth.protocol.HPacket;
import gearth.protocol.connection.HClient;
@ -113,7 +113,7 @@ public class PacketInfoManager {
List<PacketInfo> result = new ArrayList<>();
if (clientType == HClient.UNITY) {
result.addAll(new UnityPacketInfoProvider(hotelversion).provide());
result.addAll(new GEarthUnityPacketInfoProvider(hotelversion).provide());
}
else if (clientType == HClient.FLASH) {
try {

View File

@ -12,9 +12,9 @@ import java.net.URISyntaxException;
import java.util.ArrayList;
import java.util.List;
public class UnityPacketInfoProvider extends PacketInfoProvider {
public class GEarthUnityPacketInfoProvider extends PacketInfoProvider {
public UnityPacketInfoProvider(String hotelVersion) {
public GEarthUnityPacketInfoProvider(String hotelVersion) {
super(hotelVersion);
}
@ -32,7 +32,7 @@ public class UnityPacketInfoProvider extends PacketInfoProvider {
private PacketInfo jsonToPacketInfo(JSONObject object, HMessage.Direction destination) {
String name = object.getString("Name");
int headerId = object.getInt("Id");
return new PacketInfo(destination, headerId, null, name, null, "Unity_local");
return new PacketInfo(destination, headerId, null, name, null, "G-Earth");
}
@Override