Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-19 14:30:17 +01:00
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.
Dieser Commit ist enthalten in:
Ursprung
d49856cd7f
Commit
7df476183a
@ -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
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren