JustEnoughResources
JustEnoughResources copied to clipboard
NPE from FakeClientWorld
FakeClientWorld does not initialize World.mapStorage field, leading to unexpected NPEs when other mods try to use the result of World.getMapStorage.
One solution would be to initialize mapStorage before calling ForgeEventFactory.gatherCapabilities. Note that an access transformer is necessary as World.mapStorage is marked protected.
Related issues from StellarSky:
- https://github.com/MinecraftModDevelopmentMods/StellarSky/issues/104
- https://github.com/MinecraftModDevelopmentMods/StellarSky/issues/113
- https://github.com/MinecraftModDevelopmentMods/StellarSky/issues/115
Will have to rewrite profiling for newer versions, leaving this open as a reminder.
Closing old version issues, profiling needs to be rewritten for 1.19+ anyways