Reorganize basemod ticking to use ITickHandler. Introduce "GAME" tick vs "WORLD" tick for

mods that want to tick per world and "globally"
This commit is contained in:
Christian Weeks committed 2012-06-07 13:53:16 -04:00
1 parent 11652d597f
commit 9fd6f89fc3
13 files changed
+197 -147

No files matched your search

+1 -1
View File
@@ -37,7 +37,7 @@ public abstract class BaseMod implements cpw.mods.fml.common.modloader.BaseMod
@Override
public final boolean doTickInGame(TickType tick, boolean tickEnd, Object minecraftInstance, Object... data)
{
if (tick==TickType.WORLD && tickEnd) {
if (tick==TickType.GAME && tickEnd) {
return onTickInGame((MinecraftServer)minecraftInstance);
} else {
return true;