Remove unnecessary default fallback in skull block entity translator

This commit is contained in:
Eclipse 2024-06-20 12:13:58 +00:00
parent 0bec664be0
commit 710bbf2abe
No known key found for this signature in database
GPG key ID: 441A0B7FDD01D03A

View file

@ -58,7 +58,7 @@ public class SkullBlockEntityTranslator extends BlockEntityTranslator implements
bedrockNbt.putFloat("Rotation", rotation * 22.5f); bedrockNbt.putFloat("Rotation", rotation * 22.5f);
} }
bedrockNbt.putByte("SkullType", (byte) (blockState.block() instanceof SkullBlock skull ? skull.skullType().bedrockId() : 0)); bedrockNbt.putByte("SkullType", (byte) (blockState.block() instanceof SkullBlock skull ? skull.skullType().bedrockId() : 0));
if (blockState.getValue(Properties.POWERED, false)) { if (blockState.getValue(Properties.POWERED)) {
bedrockNbt.putBoolean("MouthMoving", true); bedrockNbt.putBoolean("MouthMoving", true);
} }
} }