Skip to content

Commit

Permalink
using dimensionmanager now for this shit
Browse files Browse the repository at this point in the history
  • Loading branch information
GregoriusT committed Jan 4, 2024
1 parent 3d9cdcf commit ac810ac
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/java/gregapi/GT_API_Proxy.java
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@
import net.minecraft.world.chunk.Chunk;
import net.minecraft.world.chunk.IChunkProvider;
import net.minecraftforge.common.ChestGenHooks;
import net.minecraftforge.common.DimensionManager;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.event.entity.EntityEvent.EntityConstructing;
import net.minecraftforge.event.entity.EntityJoinWorldEvent;
Expand Down Expand Up @@ -224,9 +225,9 @@ public void onProxyAfterServerStopping(Abstract_Mod aMod, FMLServerStoppingEvent
MultiTileEntityRegistry.onServerStop();
}

@SubscribeEvent(priority = EventPriority.LOWEST) public void onWorldSave (WorldEvent.Save aEvent) {checkSaveLocation(aEvent.world.getSaveHandler().getWorldDirectory(), F);}
@SubscribeEvent(priority = EventPriority.LOWEST) public void onWorldLoad (WorldEvent.Load aEvent) {checkSaveLocation(aEvent.world.getSaveHandler().getWorldDirectory(), F);}
@SubscribeEvent(priority = EventPriority.LOWEST) public void onWorldUnload(WorldEvent.Unload aEvent) {checkSaveLocation(aEvent.world.getSaveHandler().getWorldDirectory(), F);}
@SubscribeEvent(priority = EventPriority.LOWEST) public void onWorldSave (WorldEvent.Save aEvent) {checkSaveLocation(DimensionManager.getCurrentSaveRootDirectory(), F);}
@SubscribeEvent(priority = EventPriority.LOWEST) public void onWorldLoad (WorldEvent.Load aEvent) {checkSaveLocation(DimensionManager.getCurrentSaveRootDirectory(), F);}
@SubscribeEvent(priority = EventPriority.LOWEST) public void onWorldUnload(WorldEvent.Unload aEvent) {checkSaveLocation(DimensionManager.getCurrentSaveRootDirectory(), F);}

public static final List<ITileEntityServerTickPre > SERVER_TICK_PRE = new ArrayListNoNulls<>(), SERVER_TICK_PR2 = new ArrayListNoNulls<>();
public static final List<ITileEntityServerTickPost > SERVER_TICK_POST = new ArrayListNoNulls<>(), SERVER_TICK_PO2T = new ArrayListNoNulls<>();
Expand Down

0 comments on commit ac810ac

Please sign in to comment.