mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
fix intelliJ warning about potentially null block state
This commit is contained in:
parent
2827e48cc8
commit
6b83b777c9
1 changed files with 1 additions and 1 deletions
|
|
@ -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.block().hasBlockEntity() && blockEntityTranslator.shouldTranslate(session, blockState)) {
|
if (blockState != null && blockState.block().hasBlockEntity() && blockEntityTranslator.shouldTranslate(session, blockState)) {
|
||||||
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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue