Remove unnecessary code/debugs

This commit is contained in:
EOT3000 2020-04-15 10:25:40 -04:00
parent fa1e3aa4b0
commit 1a194dbce8
3 changed files with 2 additions and 4 deletions

View file

@ -63,8 +63,6 @@ public class GeyserConnector {
public static final String NAME = "Geyser";
public static final String VERSION = "1.0-SNAPSHOT";
//Change this on every game version
public static final String GAME_VERSION = "1.14.0";
private final Map<InetSocketAddress, GeyserSession> players = new HashMap<>();

View file

@ -74,7 +74,6 @@ public class UpstreamPacketHandler extends LoggingPacketHandler {
@Override
public boolean handle(ResourcePackClientResponsePacket packet) {
System.out.println(packet.getStatus());
switch (packet.getStatus()) {
case COMPLETED:
session.connect(connector.getRemoteServer());
@ -102,7 +101,7 @@ public class UpstreamPacketHandler extends LoggingPacketHandler {
stackPacket.setExperimental(false);
stackPacket.setForcedToAccept(true);
stackPacket.setGameVersion(GeyserConnector.GAME_VERSION);
stackPacket.setGameVersion(GeyserConnector.BEDROCK_PACKET_CODEC.getMinecraftVersion());
for(ResourcePack pack : ResourcePack.PACKS.values()) {
ResourcePackManifest.Header header = pack.getManifest().getHeader();
String version = header.getVersion()[0] + "." + header.getVersion()[1] + "." + header.getVersion()[2];

View file

@ -77,6 +77,7 @@ public class ResourcePack {
bytes.writeBytes(Files.readAllBytes(file.toPath()));
hash.update(bytes);
sha256 = hash.digest();
hashed = true;
} catch (Exception e) {
throw new RuntimeException("Could not calculate pack hash", e);
} finally {