- TC Eldritch Challenge: Update

This commit is contained in:
HellFirePvP committed 2015-11-09 18:50:05 +01:00
1 parent 2632b3efb7
commit d40366dfdc
7 files changed
+53 -41

No files matched your search

@@ -57,7 +57,7 @@ public class EventHandlerWorld {
@SubscribeEvent(priority = EventPriority.NORMAL)
public void on(WorldEvent.Load e) {
if (!e.world.isRemote && e.world.equals(MinecraftServer.getServer().getEntityWorld())) {
if (!e.world.isRemote && e.world.provider.dimensionId == 0) {
Gadomancy.loadModData();
GolemEnumHelper.validateSavedMapping();
@@ -109,7 +109,7 @@ public class EventHandlerWorld {
@SubscribeEvent(priority = EventPriority.NORMAL)
public void on(WorldEvent.Unload e) {
if (!e.world.isRemote && e.world.equals(MinecraftServer.getServer().getEntityWorld())) {
if (!e.world.isRemote && e.world.provider.dimensionId == 0) {
Gadomancy.unloadModData();
TCMazeHandler.closeAllSessionsAndCleanup();