mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Fix creative items
This commit is contained in:
parent
5b147f8dd1
commit
75f470cb33
1 changed files with 4 additions and 3 deletions
|
@ -225,9 +225,10 @@ public class GeyserSession implements CommandSender {
|
|||
entityPacket.setTag(EntityIdentifierRegistry.ENTITY_IDENTIFIERS);
|
||||
upstream.sendPacket(entityPacket);
|
||||
|
||||
InventoryContentPacket creativePacket = new InventoryContentPacket();
|
||||
creativePacket.setContainerId(ContainerId.CREATIVE); //TODO: Why is this deprecated?
|
||||
creativePacket.setContents(ItemRegistry.CREATIVE_ITEMS);
|
||||
CreativeContentPacket creativePacket = new CreativeContentPacket();
|
||||
for (int i = 0; i < ItemRegistry.CREATIVE_ITEMS.length; i++) {
|
||||
creativePacket.getEntries().put(i, ItemRegistry.CREATIVE_ITEMS[i]);
|
||||
}
|
||||
upstream.sendPacket(creativePacket);
|
||||
|
||||
PlayStatusPacket playStatusPacket = new PlayStatusPacket();
|
||||
|
|
Loading…
Reference in a new issue