MovingBlocks / Terasology

Terasology - open source voxel world
http://terasology.org
Apache License 2.0
3.64k stars 1.33k forks source link

refactor: component field visibility public #5191

Closed jdrueckert closed 6 months ago

jdrueckert commented 6 months ago

Newer Java versions are stricter with regards to access restrictions when using reflection. This affects in particular the serialization of non-public fields in our component classes. For this reason, we decided to exclude non-public component fields from serialization and refactor all non-public component fields to be public instead to ensure not breaking any game and especially saving/loading behavior.