Jump to content

"possible" fix for Spatial Storage


flinkymeatball

Recommended Posts

Idk why it doesen't work but its something to do with sponge, but I found this on a github

 

The real cause of this problem is
https://github.com/AppliedEnergistics/Applied-Energistics-2/blob/rv6-1.12/src/main/java/appeng/core/Registration.java#L338

DimensionManager.getWorld( AEConfig.instance().getStorageDimensionID() ) returns null for the storage cell dimension while under native Forge it returns the same world object as event.getObject(), thus preventing the SpatialDimensionManager instance from being attached.

Forge adds the dimention to its DimensionManager durning creation of the WorldServer object by calling the setWorld method before calling WorldServer.init()(which calls World.initCapabilities() and triggers the event), allowing AE2 to get back the world using getWorld method. However, this setWorld call is removed by sponge.

For anyone wants to mess with the code, here is a "temp fix" for this issue.

Link to comment
Share on other sites

Making an untested change in such a central part of sponge could cause many bugs in other places. I don't think taking that risk is worth it considering barely anyone even uses the spatial storage from AE2.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

By using this site you agree to the following Terms of Use, Guidelines and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.