FallingColors / HexMod

Minecraft mod about drawing spells
MIT License
122 stars 87 forks source link

Stack/serialization limit is weirdly enforced #740

Open object-Object opened 1 month ago

object-Object commented 1 month ago

I've mentioned this a few times in Discord, but I don't think an issue has been opened.

The stack/serialization/iota limit, which is used both when serializing iotas and after each frame evaluation in the CastingVM, is checked here:

https://github.com/FallingColors/HexMod/blob/45d519d6a9e0f7c1a723d2fcc8ca59f54b9e8c0e/Common/src/main/java/at/petrak/hexcasting/api/casting/iota/IotaType.java#L79-L111

HexIotaTypes.MAX_SERIALIZATION_TOTAL is currently hardcoded to 1024. However, that's not the actual limit in practice, for two reasons:

This also means that the largest possible list could only contain 1021 iotas.

I'm not sure if this counts as a bug really, but it seems weird.

walksanatora commented 1 month ago

might I also request that we make this configurable (please šŸ™šŸ»)

navarchus commented 1 month ago

I agree this is kind of weird. I'd like to revisit this and (like @walksanatora suggests) consider making this configurable