Contract review suggestion

Co-authored-by: Nikolay S. <[email protected]>
This commit is contained in:
koolkrafter5andNikolay S. authored and GitHub committed 2025-10-08 01:24:49 -04:00
1 parent 97b7889214
commit 5de71f8c3c
1 file changed
+4 -3
@@ -16,12 +16,13 @@ public class ProfaneWandUpdate extends DarkWandRodOnUpdate {
return;
}
NBTTagCompound tag = itemstack.getTagCompound();
int contract = tag.getInteger("contract");
int contract;
if (!tag.hasKey("contract")) {
Thaumcraft.proxy.getResearchManager().completeResearch(player, "ROD_profane");
contract = 25000;
} else if (contract <= 0) {
return;
} else {
contract = tag.getInteger("contract");
if (contract <= 0) return;
}
int maxVis = getMaxVis(itemstack);