Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-12-26 00:00:41 +01:00
Only translate double chest tags if we are dealing with a double chest (#4736)
Dieser Commit ist enthalten in:
Ursprung
9db1dd10d2
Commit
d00cab18fd
@ -42,9 +42,11 @@ public class DoubleChestBlockEntityTranslator extends BlockEntityTranslator impl
|
||||
|
||||
@Override
|
||||
public void translateTag(GeyserSession session, NbtMapBuilder bedrockNbt, NbtMap javaNbt, BlockState blockState) {
|
||||
int x = (int) bedrockNbt.get("x");
|
||||
int z = (int) bedrockNbt.get("z");
|
||||
translateChestValue(bedrockNbt, blockState, x, z);
|
||||
if (blockState.getValue(Properties.CHEST_TYPE) != ChestType.SINGLE) {
|
||||
int x = (int) bedrockNbt.get("x");
|
||||
int z = (int) bedrockNbt.get("z");
|
||||
translateChestValue(bedrockNbt, blockState, x, z);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren