Zergatul/cheatutils

Conflict with voidscape mod.

Opened this issue · 3 comments

Conflict with voidscape mod. If you try to add the voidscape ores to the block esp, it adds an incorrect entry into the config json and stops the block esp page from being able to load the list of xray blocks or edit them until you close the game, delete the entry and reload the game.
brave_HoTUErqZd0
notepad++_ReKTGt9GcL

Edit: Even if you manually give the entry a name, it still will not allow it to load properly.

Version of the game?

1.20.1 atm9. Sorry I should have thought to include that. the mod version is 2.7.7

The problem is voidscape mod uses anonymous classes for some of their blocks. For example voidic_crystal_ore:

https://github.com/Tamaized/Voidscape/blob/9fb648f6a0951e41bc55c0447633133d8629459c/src/main/java/tamaized/voidscape/registry/ModBlocks.java#L51

And google gson library I use for JSON serialization always skips anonymous classes:

https://github.com/google/gson/blob/dda176cf806484f4dd7db856ab7f84ae44315e7b/gson/src/main/java/com/google/gson/internal/Excluder.java#L192

And there is no way to override this behavior.

It seems like this simple issue is very hard to fix.