Skip to content

Commit

Permalink
additional cleanup / possible bugpatching in inventorytag
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Aug 30, 2020
1 parent ae5c87c commit 7697d08
Showing 1 changed file with 6 additions and 6 deletions.
Expand Up @@ -393,9 +393,11 @@ public boolean isGeneric() {
return idType.equals("generic") || idType.equals("script") && !isUnique();
}

public static final ElementTag defaultIdHolder = new ElementTag("unknown");

public String idType = null;

public ObjectTag idHolder = null;
public ObjectTag idHolder = defaultIdHolder;

public Long uniquifier = null;

Expand Down Expand Up @@ -456,10 +458,6 @@ public InventoryTag(int size) {
this(size, "Chest");
}

public InventoryTag(String idType) {
this.idType = CoreUtilities.toLowerCase(idType);
}

public Inventory getInventory() {
return inventory;
}
Expand Down Expand Up @@ -574,7 +572,9 @@ else if (holder instanceof Entity) {
else {
idType = "location";
idHolder = getLocation(holder);
return;
if (idHolder != null) {
return;
}
}
}
else if (getIdType().equals("player")) {
Expand Down

0 comments on commit 7697d08

Please sign in to comment.