Don't show the debug stick in the creative menu

It currently doesn't have a texture, and Java Edition doesn't have the debug stick in its menu.
This commit is contained in:
Camotoy 2021-11-08 08:33:16 -05:00
parent c18404cb52
commit 0274296366
No known key found for this signature in database
GPG key ID: 7EEFB66FE798081F

View file

@ -172,6 +172,9 @@ public class ItemRegistryPopulator {
if (identifier.equals("minecraft:sculk_sensor") && !GeyserConnector.getInstance().getConfig().isExtendedWorldHeight()) {
// https://github.com/GeyserMC/Geyser/issues/2564
continue;
} else if (identifier.equals("minecraft:debug_stick")) {
// Just shows an empty texture; either way it doesn't exist in the creative menu on Java
continue;
}
StartGamePacket.ItemEntry entry = entries.get(identifier);
int id = -1;