Skip to content

Commit

Permalink
might fix an issue some addon dev is having
Browse files Browse the repository at this point in the history
  • Loading branch information
GregoriusT committed Apr 3, 2024
1 parent ac27681 commit 9a1c3c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/gregapi/oredict/OreDictMaterial.java
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ public static OreDictMaterial createMaterial(int aID, String aNameOreDict, Strin
ERR.println("NOTICE: Two Materials used the same ID: " + aID + " - Names: " + aNameOreDict + " and " + rMaterial1.mNameInternal);
return rMaterial1;
}
if (rMaterial1.mID < 0) MATERIAL_MAP.remove(rMaterial1);
OreDictMaterial rMaterial2 = new OreDictMaterial((short)aID, aNameOreDict, aLocalName);
rMaterial1.setRegistration(rMaterial2);
return rMaterial2;
Expand Down

0 comments on commit 9a1c3c4

Please sign in to comment.