Make sure Forge's TickEvents are fired in their phase states.
Fixes
import net.minecraftforge.fml.common.eventhandler.IEventListener;
import net.minecraftforge.fml.common.eventhandler.ListenerList;
import net.minecraftforge.fml.common.gameevent.TickEvent;
+import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.oredict.OreDictionary;
import org.spongepowered.api.Sponge;
import org.spongepowered.api.util.annotation.NonnullByDefault;
}
private boolean forgeImpl$isIgnoredEvent(final Event event) {
- if (event instanceof TickEvent) {
+ if (event instanceof TickEvent && ((TickEvent) event).side == Side.CLIENT) {
return true;
}
if (event instanceof EntityEvent.CanUpdate) {
