sisby-folk / switchy

A minecraft mod that combines player personalization features from other mods into presets.
https://modrinth.com/mod/switchy
GNU Lesser General Public License v3.0
12 stars 8 forks source link

Crash with Infinitory Renewed 1.5.0-pre4 #53

Closed Afrocntrik closed 5 months ago

Afrocntrik commented 9 months ago

Fabric Loader 0.14.22 Minecraft 1.20.1

crashlog

Infinitory Renewed is not open source and is most likely abandoned.

sisby-folk commented 9 months ago

To nail this down exactly: infinitory has mixed in to the initializer for PlayerInventory. Switchy inventories constructs player inventories where player is null in order to store inventory contents for non-current presets. Infinitory runs player.getWorld(), which naturally crashes. Even if it checked for a null player, I'm unsure it would serialize and deserialize its own correctly - assuming it is actually world dependent.

Just choose between switchable inventories and infinite inventories.