From 097ecb062ee855e8962436890f90139e116ad8a1 Mon Sep 17 00:00:00 2001 From: Jozufozu Date: Fri, 5 Nov 2021 16:47:27 -0700 Subject: [PATCH] Invalidate regardless --- src/main/java/com/jozufozu/flywheel/event/ForgeEvents.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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()); } }