Closed noobanidus closed 3 weeks ago
Yeah I originally did not target all block entities for this reason. I didn't see any mods extending ChestBlockEntity
but not ChestBlock
(where the regular block model is enabled) in the wild, so I assumed it was safe enough to do it this way. Oops.
Tags seem to be the best solution for this.
Done, FastChest hackery is opt-in now in version 1.7
Obviously as Lootr containers inherit from
ChestBlockEntity
, your mixin that disables the renderer being returned also captures Lootr containers.My suggestion for future compatibility would be to take advantage of block entity type tags to create an exclusion list. This would allow people to configure it via data pack, and mods to include default tags.
It's also simple to implement as noted in the following code snippet from Lootr (although please note that I'm using mojmap here):
I imagine you could then have: