Fix first item of creative inventory not showing

This commit is contained in:
AJ Ferguson 2020-06-27 20:47:10 -08:00
parent 2e0eb6dfb7
commit e3e8bb2799

View file

@ -226,7 +226,7 @@ public class GeyserSession implements CommandSender {
CreativeContentPacket creativePacket = new CreativeContentPacket();
for (int i = 0; i < ItemRegistry.CREATIVE_ITEMS.length; i++) {
creativePacket.getEntries().put(i, ItemRegistry.CREATIVE_ITEMS[i]);
creativePacket.getEntries().put(i + 1, ItemRegistry.CREATIVE_ITEMS[i]);
}
upstream.sendPacket(creativePacket);