From d18b4c53c02ae0832c13c6a96e9a214948db867b Mon Sep 17 00:00:00 2001 From: Lixfel Date: Tue, 24 Dec 2019 14:17:02 +0100 Subject: [PATCH] Fixing overriding of schematics --- .../de/steamwar/schematicsystem/commands/SchematicCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SchematicSystem_Main/src/de/steamwar/schematicsystem/commands/SchematicCommand.java b/SchematicSystem_Main/src/de/steamwar/schematicsystem/commands/SchematicCommand.java index 8014119..d8be893 100644 --- a/SchematicSystem_Main/src/de/steamwar/schematicsystem/commands/SchematicCommand.java +++ b/SchematicSystem_Main/src/de/steamwar/schematicsystem/commands/SchematicCommand.java @@ -179,7 +179,7 @@ public class SchematicCommand implements CommandExecutor { } boolean newSchem = false; - if(schematic == null || schematic.getSchemOwner() == SteamwarUser.get(player.getUniqueId()).getId()){ + if(schematic == null || schematic.getSchemOwner() != SteamwarUser.get(player.getUniqueId()).getId()){ newSchem = true; Schematic.createSchem(args[1], player.getUniqueId(), "", SchematicType.Normal); schematic = Schematic.getSchemFromDB(args[1], player.getUniqueId()); -- 2.39.2