Fix crash after first disconnect

This commit is contained in:
AJ Ferguson 2019-10-01 15:36:33 -08:00
parent ac8fd0cde8
commit 4b0d777128
2 changed files with 227 additions and 1 deletions

View file

@ -297,7 +297,7 @@ public class GeyserSession implements Player {
startGamePacket.setCurrentTick(0);
startGamePacket.setEnchantmentSeed(0);
startGamePacket.setMultiplayerCorrelationId("");
startGamePacket.setCachedPalette(Toolbox.CACHED_PALLETE);
startGamePacket.setCachedPalette(Toolbox.CACHED_PALLETE.copy());
startGamePacket.setItemEntries(Toolbox.ITEMS);
upstream.sendPacket(startGamePacket);