forked from GeyserMC/Geyser
More attempts at fixing crash bug
This commit is contained in:
parent
a369ebccf7
commit
2d079b2ddf
1 changed files with 7 additions and 1 deletions
|
@ -107,6 +107,12 @@ public class TranslatorsInit {
|
||||||
|
|
||||||
session.getUpstream().sendPacketImmediately(startGamePacket);
|
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);
|
Vector3f pos = new Vector3f(0, 0, 0);
|
||||||
|
|
||||||
int chunkX = pos.getFloorX() >> 4;
|
int chunkX = pos.getFloorX() >> 4;
|
||||||
|
@ -123,7 +129,7 @@ public class TranslatorsInit {
|
||||||
|
|
||||||
ByteBuf buf = Unpooled.buffer();
|
ByteBuf buf = Unpooled.buffer();
|
||||||
|
|
||||||
data.setSubChunksLength(1);
|
data.setSubChunksLength(16);
|
||||||
|
|
||||||
for(int i = 0; i < 1; i++) {
|
for(int i = 0; i < 1; i++) {
|
||||||
GeyserUtils.writeEmptySubChunk(buf);
|
GeyserUtils.writeEmptySubChunk(buf);
|
||||||
|
|
Loading…
Reference in a new issue