Hotfix: Double Creation of //copy Schematics in //download command
This commit is contained in:
@ -35,10 +35,10 @@ public class DownloadCommand extends SWCommand {
|
||||
@Register(help = true)
|
||||
public void genericCommand(Player player, String... args) {
|
||||
SteamwarUser user = SteamwarUser.get(player.getUniqueId());
|
||||
SchematicNode copyNode = SchematicNode.getSchematicNode(user.getId(), "//copy", 0);
|
||||
SchematicNode copyNode = SchematicNode.getSchematicNode(user.getId(), "//copy", null);
|
||||
boolean newSchem = false;
|
||||
if (copyNode == null) {
|
||||
copyNode = SchematicNode.createSchematicNode(user.getId(), "//copy", 0, SchematicType.Normal.toDB(), "");
|
||||
copyNode = SchematicNode.createSchematicNode(user.getId(), "//copy", null, SchematicType.Normal.toDB(), "");
|
||||
newSchem = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user