Mo' Tinker and Blade Craft

Fixed Fryingpans causing slot hifting when in the off-hand, added a
config to allow hatchets to be used in the off-hand, and made Paladin
Steve happy by letting him use a shield alongside a Hammer
This commit is contained in:
Zerokyuuni committed 2013-09-13 00:09:00 -04:00
1 parent 5b3c6d1987
commit d26e0bf6f2
4 files changed
+6 -8

No files matched your search

+1 -1
View File
@@ -43,7 +43,7 @@ public class FryingPan extends Weapon
{
if (mob.canAttackWithItem() && !mob.hitByEntity(player) && mob.hurtResistantTime < 14)
AbilityHelper.onLeftClickEntity(stack, player, mob, this);
return true;
return false;
}
@Override
-5
View File
@@ -405,11 +405,6 @@ public class Hammer extends HarvestTool
return false;
}
@Override
public boolean willAllowShield() {
return false;
}
@Override
public boolean isOffhandHandDualWeapon() {
return false;
+2 -1
View File
@@ -3,6 +3,7 @@ package tconstruct.items.tools;
import tconstruct.common.TContent;
import tconstruct.library.tools.AbilityHelper;
import tconstruct.library.tools.HarvestTool;
import tconstruct.util.PHConstruct;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.entity.EntityLivingBase;
@@ -107,6 +108,6 @@ public class Hatchet extends HarvestTool
@Override
public boolean isOffhandHandDualWeapon() {
return false;
return PHConstruct.isHatchetWeapon;
}
}
+3 -1
View File
@@ -46,7 +46,7 @@ public class PHConstruct
beginnerBook = config.get("Difficulty Changes", "Spawn beginner book", true).getBoolean(true);
alphaRegen = config.get("Alpha Behavior", "Regenerate HP from food", false).getBoolean(false);
alphaHunger = config.get("Alpha Behavior", "Remove hunger", false).getBoolean(false);
superfunWorld = config.get("Superfun", "All the world is Superfun", false).getBoolean(false);
enableTWood = config.get("Difficulty Changes", "Enable mod wooden tools", true).getBoolean(true);
@@ -363,6 +363,7 @@ public class PHConstruct
//Addon stuff
isCleaverTwoHanded = config.get("Battlegear", "Can Cleavers have shields", true).getBoolean(true);
isHatchetWeapon = config.get("Battlegear", "Are Hatches also weapons", true).getBoolean(true);
/* Save the configuration file */
config.save();
@@ -687,4 +688,5 @@ public class PHConstruct
//Addon stuff
public static boolean isCleaverTwoHanded;
public static boolean isHatchetWeapon;
}