Pyrotech

Pyrotech

897k Downloads

Contents of rock bag destroyed when you go into creative mode

codetaylor opened this issue ยท 5 comments

commented

image

commented

Damn it, now I can't reproduce the exact steps. I know that this is a known issue with capabilities & creative mode. It might be limited to multiplayer servers? I'm not exactly sure. I know the Quark backpack suffered from this issue, and until I converted them to use NBT, the Roots 3 Staff and Pouch also suffered from the same problem.

commented

@duely Ok, I see what you did with the Pouch: https://github.com/EpicSquid/Roots/blob/master/src/main/java/epicsquid/roots/handler/PouchHandler.java

You're just bypassing the capability system completely and operating directly on the stack's NBT.

I'd love to understand why this happens though and why bypassing the capability system is the solution.

commented

https://github.com/Vazkii/Quark/blob/master/src/main/java/vazkii/quark/oddities/item/ItemBackpack.java

I know the most recent backpack is functioning properly and no longer suffers from a "creative mode randomly deletes your capabilities" issue.

commented

image

commented

image