diff --git a/fml/common/cpw/mods/fml/common/FMLCommonHandler.java b/fml/common/cpw/mods/fml/common/FMLCommonHandler.java index a8ba10c50..7f09adc98 100644 --- a/fml/common/cpw/mods/fml/common/FMLCommonHandler.java +++ b/fml/common/cpw/mods/fml/common/FMLCommonHandler.java @@ -115,7 +115,7 @@ public class FMLCommonHandler for (IScheduledTickHandler ticker : scheduledTicks) { EnumSet ticksToRun = EnumSet.copyOf(Objects.firstNonNull(ticker.ticks(), EnumSet.noneOf(TickType.class))); - ticksToRun.removeAll(EnumSet.complementOf(ticks)); + ticksToRun.retainAll(ticks); if (!ticksToRun.isEmpty()) { ticker.tickStart(ticksToRun, data); @@ -134,7 +134,7 @@ public class FMLCommonHandler for (IScheduledTickHandler ticker : scheduledTicks) { EnumSet ticksToRun = EnumSet.copyOf(Objects.firstNonNull(ticker.ticks(), EnumSet.noneOf(TickType.class))); - ticksToRun.removeAll(EnumSet.complementOf(ticks)); + ticksToRun.retainAll(ticks); if (!ticksToRun.isEmpty()) { ticker.tickEnd(ticksToRun, data);