forked from SteamWar/SteamWar
Fix: Explicitly cast null to Integer in DownloadCommand
This commit is contained in:
+1
-1
@@ -35,7 +35,7 @@ public class DownloadCommand extends SWCommand {
|
|||||||
@Register(help = true)
|
@Register(help = true)
|
||||||
public void genericCommand(Player player, String... args) {
|
public void genericCommand(Player player, String... args) {
|
||||||
SteamwarUser user = SteamwarUser.get(player.getUniqueId());
|
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;
|
boolean newSchem = false;
|
||||||
if (copyNode == null) {
|
if (copyNode == null) {
|
||||||
copyNode = SchematicNode.createSchematicNode(user.getId(), "//copy", null, SchematicType.Normal.toDB(), "");
|
copyNode = SchematicNode.createSchematicNode(user.getId(), "//copy", null, SchematicType.Normal.toDB(), "");
|
||||||
|
|||||||
Reference in New Issue
Block a user