mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-26 23:13:07 +00:00
Move necrotic flag to AbilityHelper.java
This commit is contained in:
1 parent
ca0f5d5620
commit
f7b8f04b2e
2 files changed
+7
-5
No files matched your search
@@ -43,6 +43,7 @@ import tconstruct.util.PHConstruct;
|
||||
public class AbilityHelper
|
||||
{
|
||||
public static Random random = new Random();
|
||||
public static boolean necroticUHS;
|
||||
|
||||
/* Normal interactions */
|
||||
public static boolean onBlockChanged (ItemStack stack, World world, int bID, int x, int y, int z, EntityLivingBase player, Random random)
|
||||
@@ -206,7 +207,7 @@ public class AbilityHelper
|
||||
}
|
||||
//damageTool(stack, 1, player, false);
|
||||
tool.onEntityDamaged(player.worldObj, player, entity);
|
||||
if (!PHConstruct.necroticUHS || (entity instanceof IMob && entity instanceof EntityLivingBase && ((EntityLivingBase) entity).getHealth() <= 0))
|
||||
if (!necroticUHS || (entity instanceof IMob && entity instanceof EntityLivingBase && ((EntityLivingBase) entity).getHealth() <= 0))
|
||||
{
|
||||
int drain = toolTags.getInteger("Necrotic") * 2;
|
||||
if (drain > 0)
|
||||
|
||||
Reference in new issue
Block a user