Useful Nullifiers

Useful Nullifiers

8M Downloads

Energy Nullifier causes a crash if IC2 is not installed

unascribed opened this issue ยท 0 comments

commented

The Energy Nullifier is crashing with an AbstractMethodError when placed if IC2 is not installed, as it implements ITickable, but that method is removed via Optional with a check on the IC2 modid.

The easy fix is to use Optional to strip the ITickable interface when IC2 is not present.

java.lang.AbstractMethodError
        at net.minecraft.world.World.func_72939_s(World.java:1804)
        at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:619)
        at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:709)
        at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387)
        at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471)
        at java.lang.Thread.run(Thread.java:745)