diff --git a/src/main/java/com/jozufozu/flywheel/event/ForgeEvents.java b/src/main/java/com/jozufozu/flywheel/event/ForgeEvents.java index 4a3a73063..d2f207e28 100644 --- a/src/main/java/com/jozufozu/flywheel/event/ForgeEvents.java +++ b/src/main/java/com/jozufozu/flywheel/event/ForgeEvents.java @@ -48,11 +48,7 @@ public class ForgeEvents { @SubscribeEvent public static void onUnloadWorld(WorldEvent.Unload event) { - IWorld world = event.getWorld(); - - if (Backend.isFlywheelWorld(world)) { - WorldAttached.invalidateWorld(world); - } + WorldAttached.invalidateWorld(event.getWorld()); } }