mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Only translate double chest tags if we are dealing with a double chest (#4736)
This commit is contained in:
parent
9db1dd10d2
commit
d00cab18fd
1 changed files with 5 additions and 3 deletions
|
@ -42,9 +42,11 @@ public class DoubleChestBlockEntityTranslator extends BlockEntityTranslator impl
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void translateTag(GeyserSession session, NbtMapBuilder bedrockNbt, NbtMap javaNbt, BlockState blockState) {
|
public void translateTag(GeyserSession session, NbtMapBuilder bedrockNbt, NbtMap javaNbt, BlockState blockState) {
|
||||||
int x = (int) bedrockNbt.get("x");
|
if (blockState.getValue(Properties.CHEST_TYPE) != ChestType.SINGLE) {
|
||||||
int z = (int) bedrockNbt.get("z");
|
int x = (int) bedrockNbt.get("x");
|
||||||
translateChestValue(bedrockNbt, blockState, x, z);
|
int z = (int) bedrockNbt.get("z");
|
||||||
|
translateChestValue(bedrockNbt, blockState, x, z);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue