mirror of
https://github.com/GTNewHorizons/ForbiddenMagic.git
synced 2026-11-20 20:12:13 +00:00
Contract review suggestion
Co-authored-by: Nikolay S. <[email protected]>
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user