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:
Camotoy 2020-08-08 17:50:32 -04:00 committed by GitHub
parent d49856cd7f
commit 7df476183a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 8 deletions

View File

@ -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