forked from GeyserMC/Geyser
Implement proper mappings for pistons, dropper, dispenser (#1103)
This commit gets rid of the hacky workaround implemented for pistons, droppers and dispensers and actually implements the vanilla data values.
This commit is contained in:
parent
d49856cd7f
commit
7df476183a
2 changed files with 1 additions and 8 deletions
|
@ -214,13 +214,6 @@ public class ItemRegistry {
|
|||
return itemEntry;
|
||||
}
|
||||
}
|
||||
// If item find was unsuccessful first time, we try again while ignoring damage
|
||||
// Fixes piston, sticky pistons, dispensers and droppers turning into air from creative inventory
|
||||
for (ItemEntry itemEntry : ITEM_ENTRIES.values()) {
|
||||
if (itemEntry.getBedrockId() == data.getId()) {
|
||||
return itemEntry;
|
||||
}
|
||||
}
|
||||
|
||||
// This will hide the message when the player clicks with an empty hand
|
||||
if (data.getId() != 0 && data.getDamage() != 0) {
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 83a3468766b82ea97bd1ae8a1e92bffcc2745349
|
||||
Subproject commit a222d85dc0b8e8c95a150f2d488a6a25390b8c2f
|
Loading…
Reference in a new issue