mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-14 22:56:31 +01:00
Ensure that the block entity has nbt
This commit is contained in:
parent
faa7c512af
commit
8ff7eed45c
@ -166,7 +166,9 @@ public class AnvilLoader implements IChunkLoader {
|
||||
.removeTag("x").removeTag("y").removeTag("z")
|
||||
.removeTag("keepPacked");
|
||||
// Place block
|
||||
loadedChunk.setBlock(x, y, z, block.withNbt(te));
|
||||
final var finalBlock = te.getSize() > 0 ?
|
||||
block.withNbt(te) : block;
|
||||
loadedChunk.setBlock(x, y, z, finalBlock);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user