Update build.xml (Ant) for newer Forge. Adjust MCP mappings as needed.

This commit is contained in:
Progwml6 authored and Sunstrike committed 2013-09-07 12:21:55 +01:00
1 parent 456adb947b
commit de50db7165
70 files changed
+194 -187

No files matched your search

@@ -73,7 +73,7 @@ public class AbilityHelper
{
if (entity.canAttackWithItem() && stack.hasTagCompound())
{
if (!entity.func_85031_j(player)) // can't attack this entity
if (!entity.hitByEntity(player)) // can't attack this entity
{
NBTTagCompound tags = stack.getTagCompound();
NBTTagCompound toolTags = stack.getTagCompound().getCompoundTag("InfiTool");
@@ -206,7 +206,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).func_110143_aJ() <= 0))
if (!PHConstruct.necroticUHS || (entity instanceof IMob && entity instanceof EntityLivingBase && ((EntityLivingBase) entity).getHealth() <= 0))
{
int drain = toolTags.getInteger("Necrotic") * 2;
if (drain > 0)
@@ -240,7 +240,7 @@ public class AbilityHelper
}
}
player.func_130011_c(entity);
player.setLastAttacker(entity);
if (entity instanceof EntityLivingBase)
{
@@ -308,7 +308,7 @@ public class AbilityHelper
}
}
if (!(living instanceof EntityPlayer) || player.func_96122_a((EntityPlayer) living))
if (!(living instanceof EntityPlayer) || player.canAttackPlayer((EntityPlayer) living))
{
List var6 = player.worldObj.getEntitiesWithinAABB(EntityWolf.class,
AxisAlignedBB.getAABBPool().getAABB(player.posX, player.posY, player.posZ, player.posX + 1.0D, player.posY + 1.0D, player.posZ + 1.0D).expand(16.0D, 4.0D, 16.0D));