Simplify check

This commit is contained in:
chris 2024-06-19 03:11:59 +02:00 committed by GitHub
parent 82724b4020
commit ce02d2840f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -406,7 +406,7 @@ public class JavaLevelChunkWithLightTranslator extends PacketTranslator<Clientbo
// The Java server can send block entity data for blocks that aren't actually those blocks. // The Java server can send block entity data for blocks that aren't actually those blocks.
// A Java client ignores these // A Java client ignores these
if (blockState != null && blockState.block().hasBlockEntity() && type.equals(blockState.block().blockEntityType())) { if (blockState != null && type.equals(blockState.block().blockEntityType())) {
bedrockBlockEntities.add(blockEntityTranslator.getBlockEntityTag(session, type, x + chunkBlockX, y, z + chunkBlockZ, tag, blockState)); bedrockBlockEntities.add(blockEntityTranslator.getBlockEntityTag(session, type, x + chunkBlockX, y, z + chunkBlockZ, tag, blockState));
// Check for custom skulls // Check for custom skulls