Croptopia

Croptopia

30M Downloads

Quilt crash on world load or new

EightBlade opened this issue ยท 8 comments

commented

Make sure you are not opening a duplicate.

Platform.

Fabric

Minecraft version.

1.19.2

Croptopia version.

2.1.2

What happened?

I installed croptopia and attempted to both create a new world and open an existing one. Both resulted in crashes.

Relevant logs

https://pastebin.com/qvkReR9z

Additional information

No response

commented

Experiencing the same issue, happens across Croptopia versions 2.0.8 to 2.1.2 and Quilt versions 0.17.6 and the latest beta 8 for 0.18.1.

commented

Hey @ItsKipz ,
thanks for the insight. Does that mean versions before 2.0.8 (e.g. 2.0.5 or 2.0.7) do work with Quilt? Or you just didn't test these?

commented

I tried 2.0.5 on quilt and it crashed. Here's the log: https://pastebin.com/p5S5bU3Z

commented

I have same issue on 1.19.2, 2.1.12

commented

Issue seems to be that Quilt makes the AxeItem#STRIPPABLES mutable (and assumes it to be that on Datapack reload), and Croptopia overrides it with an immutable Map here:
https://github.com/ExcessiveAmountsOfZombies/Croptopia/blob/6e140b000da59b316ba174aae64239ed2903ceac/fabric/src/main/java/com/epherical/croptopia/Croptopia.java#LL120C24-L120C24
There is a Fabric-API way to modify which Blocks are strippable, which would also be compatible with Quilt. Maybe consider using that?

commented

when I wrote this bit of code I don't think the Fabric-API had a way to add blocks to the register, so now that it does, when I rewrite the mod again in a few weeks this might be fixed.

commented

Probably fixed? I'm using the fabric API now but I don't test with quilt

commented

I can confirm it works flawlessly now (on Quilt 1.19.2).