From f6ee55c44fdcca521de84084a09cf2875f417631 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sun, 22 Oct 2023 12:31:19 +0200 Subject: [PATCH] Optimize SimulatorBaseGui --- .../features/simulator2/gui/base/SimulatorBaseGui.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/simulator2/gui/base/SimulatorBaseGui.java b/BauSystem_Main/src/de/steamwar/bausystem/features/simulator2/gui/base/SimulatorBaseGui.java index 00ef9c24..b15ba629 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/simulator2/gui/base/SimulatorBaseGui.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/simulator2/gui/base/SimulatorBaseGui.java @@ -48,7 +48,7 @@ public abstract class SimulatorBaseGui { String newTitle = title(); String originalTitle = player.getOpenInventory().getTitle(); - if (inv != null && (newTitle.equals(originalTitle) || Core.getVersion() > 19)) { + if (inv != null && (Core.getVersion() > 19 || newTitle.equals(originalTitle))) { inv.clear(); setup(); if (player.getOpenInventory().getTopInventory() != inv) {