Actually check for a null world... Not sure why there is a null world event being thrown, but it is....
import org.spongepowered.common.event.tracking.PhaseContext;
import org.spongepowered.common.event.tracking.phase.plugin.PluginPhase;
import org.spongepowered.common.interfaces.world.IMixinWorld;
-import org.spongepowered.common.interfaces.world.IMixinWorldServer;
import javax.annotation.Nullable;
if (event instanceof TickEvent.WorldTickEvent) {
final TickEvent.WorldTickEvent worldTickEvent = (TickEvent.WorldTickEvent) event;
final World world = worldTickEvent.world;
- if (((IMixinWorld) world).isFake()) {
+ if (world == null || ((IMixinWorld) world).isFake()) {
return null;
}
if (worldTickEvent.phase == TickEvent.Phase.START) {
