Skip to content

Commit 14deccc

Browse files
committed
Remove isRemoved() check for BlockEntities
Mojang decided to make block entities as removed after they get unloaded
1 parent 5112922 commit 14deccc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/yatopiamc/c2me/mixin/threading/chunkio/MixinChunkSerializer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ private static NbtCompound onChunkGetPackedBlockEntityNbt(Chunk chunk, BlockPos
4545
final AsyncSerializationManager.Scope scope = AsyncSerializationManager.getScope(chunk.getPos());
4646
if (scope == null) return chunk.getPackedBlockEntityNbt(pos);
4747
final BlockEntity blockEntity = scope.blockEntities.get(pos);
48-
if (blockEntity == null || blockEntity.isRemoved()) return null;
48+
if (blockEntity == null) return null;
4949
final NbtCompound compoundTag = new NbtCompound();
5050
if (chunk instanceof WorldChunk) compoundTag.putBoolean("keepPacked", false);
5151
blockEntity.writeNbt(compoundTag);

0 commit comments

Comments
 (0)