From c9e4b57f12db06f6fc8dab834e0dba61cd5aaf89 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Sat, 12 Apr 2025 19:10:18 +0200 Subject: [PATCH] Fix: Explicitly cast null to Integer in DownloadCommand --- .../de/steamwar/schematicsystem/commands/DownloadCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SchematicSystem/SchematicSystem_Core/src/de/steamwar/schematicsystem/commands/DownloadCommand.java b/SchematicSystem/SchematicSystem_Core/src/de/steamwar/schematicsystem/commands/DownloadCommand.java index b62c5c50..31c29bd0 100644 --- a/SchematicSystem/SchematicSystem_Core/src/de/steamwar/schematicsystem/commands/DownloadCommand.java +++ b/SchematicSystem/SchematicSystem_Core/src/de/steamwar/schematicsystem/commands/DownloadCommand.java @@ -35,7 +35,7 @@ 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", null); + SchematicNode copyNode = SchematicNode.getSchematicNode(user.getId(), "//copy", (Integer) null); boolean newSchem = false; if (copyNode == null) { copyNode = SchematicNode.createSchematicNode(user.getId(), "//copy", null, SchematicType.Normal.toDB(), "");