13
0

Fixing overriding of schematics

Dieser Commit ist enthalten in:
Lixfel 2019-12-24 14:17:02 +01:00
Ursprung c099d799e1
Commit d18b4c53c0

Datei anzeigen

@ -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());