Hex Casting

Hex Casting

6M Downloads

[0.10] Clearing akashic libraries with shift right click doesn't remove the pattern or lens info

object-Object opened this issue ยท 1 comments

commented

image
Reading from that pattern returns null as expected.

commented

Okay, found the problem that's causing this. Basically, when the bookshelf's pattern is cleared it sets its pattern and iota to null. When getting serialised to send over to the client, if the pattern or iota are null it doesn't bother adding anything to the CompoundTag that it's sending across. But, when the ClientboundBlockEntityDataPacket sees that you want to send across an empty compound tag, it helpfully optimises and sets the tag to null, and when IForgeBlockEntity receives the packet, if the tag is null it doesn't bother calling the BlockEntity's .load method.

So it seems like the way to fix this is basically to attach some dummy data to the CompoundTag if nothing else is in it.