Skip to content
This repository has been archived by the owner on Mar 10, 2021. It is now read-only.

Commit

Permalink
Part Replacement: only apply level stuff when leveling is actually en…
Browse files Browse the repository at this point in the history
…abled
  • Loading branch information
bonii-xx committed Oct 8, 2014
1 parent ce738d5 commit 57b088a
Showing 1 changed file with 4 additions and 2 deletions.
@@ -1,8 +1,10 @@
package iguanaman.iguanatweakstconstruct.replacing;

import iguanaman.iguanatweakstconstruct.IguanaTweaksTConstruct;
import iguanaman.iguanatweakstconstruct.leveling.LevelingLogic;
import iguanaman.iguanatweakstconstruct.leveling.modifiers.ModXpAwareRedstone;
import iguanaman.iguanatweakstconstruct.reference.Config;
import iguanaman.iguanatweakstconstruct.reference.Reference;
import iguanaman.iguanatweakstconstruct.util.Log;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
Expand Down Expand Up @@ -189,8 +191,8 @@ public static void exchangeToolPart(ToolCore tool, NBTTagCompound tags, PartType
if(LevelingLogic.isBoosted(tags))
tags.setInteger("HarvestLevel", tags.getInteger("HarvestLevel") + 1);
}
// add boost xp if its missing. Check is done in the function
else {
// add boost xp if its missing. Additional checks are done in the function
else if(IguanaTweaksTConstruct.pulsar.isPulseLoaded(Reference.PULSE_LEVELING)) {
LevelingLogic.addBoostTags(tags, tool);
}

Expand Down

0 comments on commit 57b088a

Please sign in to comment.