From 2d079b2ddf563b84d44d5c84d680fe8b0b3f7e14 Mon Sep 17 00:00:00 2001 From: RednedEpic Date: Sat, 20 Jul 2019 15:49:58 -0500 Subject: [PATCH] More attempts at fixing crash bug --- .../connector/network/translators/TranslatorsInit.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/connector/src/main/java/org/geysermc/connector/network/translators/TranslatorsInit.java b/connector/src/main/java/org/geysermc/connector/network/translators/TranslatorsInit.java index d080ca3b1..b0a6c1b34 100644 --- a/connector/src/main/java/org/geysermc/connector/network/translators/TranslatorsInit.java +++ b/connector/src/main/java/org/geysermc/connector/network/translators/TranslatorsInit.java @@ -107,6 +107,12 @@ public class TranslatorsInit { session.getUpstream().sendPacketImmediately(startGamePacket); + BiomeDefinitionListPacket biomeDefListPacket = new BiomeDefinitionListPacket(); + session.getUpstream().sendPacketImmediately(biomeDefListPacket); + + AvailableEntityIdentifiersPacket availableEntityPacket = new AvailableEntityIdentifiersPacket(); + session.getUpstream().sendPacketImmediately(availableEntityPacket); + Vector3f pos = new Vector3f(0, 0, 0); int chunkX = pos.getFloorX() >> 4; @@ -123,7 +129,7 @@ public class TranslatorsInit { ByteBuf buf = Unpooled.buffer(); - data.setSubChunksLength(1); + data.setSubChunksLength(16); for(int i = 0; i < 1; i++) { GeyserUtils.writeEmptySubChunk(buf);