Saturn clearing Vec2's static constants will break other mods
TelepathicGrunt opened this issue ยท 2 comments
This mixin is not safe
https://github.com/AbdElAziz333/Saturn/blob/mc1.20.1/dev/src/main/java/com/abdelaziz/saturn/mixin/allocations/vec2/Vec2Mixin.java
All these fields are static which means any mod using these constants are going to get null instead of their desired values when they do Vec2.ONE
and such. I assume you thought these were non static. But because they are static, all Vec2 objects point to the same reference for these fields. You aren't saving any memory as a result really. Just breaking mods instead.