fix chest data not synchronizing completely
@@ -100,11 +100,15 @@ public class KeypadChestTileEntity extends ChestBlockEntity implements IPassword
owner.setOwnerUUID(tag.getString("ownerUUID"));
}
+ @Override
+ public CompoundTag getUpdateTag()
+ {
+ return save(new CompoundTag());
+ }
+
@Override
public ClientboundBlockEntityDataPacket getUpdatePacket() {
- CompoundTag tag = new CompoundTag();
- save(tag);
- return new ClientboundBlockEntityDataPacket(worldPosition, 1, tag);
+ return new ClientboundBlockEntityDataPacket(worldPosition, 1, getUpdateTag());
}
@Override
