3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-11-03 14:50:19 +01:00

Merge pull request #373 from rtm516/block-entity-fix

Fix all block entities being updated as Skulls
Dieser Commit ist enthalten in:
Redned 2020-04-18 14:06:21 -05:00 committet von GitHub
Commit 3f8d5cc1c5
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -285,14 +285,14 @@ public class BlockTranslator {
if (SKULL_VARIANTS.containsKey(state)) { if (SKULL_VARIANTS.containsKey(state)) {
return SKULL_VARIANTS.getByte(state); return SKULL_VARIANTS.getByte(state);
} }
return 0; return -1;
} }
public static byte getSkullRotation(BlockState state) { public static byte getSkullRotation(BlockState state) {
if (SKULL_ROTATIONS.containsKey(state)) { if (SKULL_ROTATIONS.containsKey(state)) {
return SKULL_ROTATIONS.getByte(state); return SKULL_ROTATIONS.getByte(state);
} }
return 0; return -1;
} }
public static BlockState getJavaWaterloggedState(int bedrockId) { public static BlockState getJavaWaterloggedState(int bedrockId) {