mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 03:49:29 +00:00
Rewrote ModAttack to accept multiple items
This commit is contained in:
1 parent
977287e440
commit
086cc97ddc
12 files changed
+152
-50
No files matched your search
@@ -55,7 +55,7 @@ public class TActiveOmniMod extends ActiveToolMod
|
||||
{
|
||||
if (entity instanceof EntityPlayer && ((EntityPlayer) entity).capabilities.isCreativeMode)
|
||||
return false;
|
||||
TRepo.modL.midStreamModify(stack, tool);
|
||||
TRepo.modLapis.midStreamModify(stack, tool);
|
||||
|
||||
NBTTagCompound tags = stack.getTagCompound().getCompoundTag("InfiTool");
|
||||
World world = entity.worldObj;
|
||||
@@ -151,7 +151,7 @@ public class TActiveOmniMod extends ActiveToolMod
|
||||
@Override
|
||||
public int baseAttackDamage (int earlyModDamage, int damage, ToolCore tool, NBTTagCompound tags, NBTTagCompound toolTags, ItemStack stack, EntityLivingBase player, Entity entity)
|
||||
{
|
||||
TRepo.modL.midStreamModify(stack, tool);
|
||||
TRepo.modLapis.midStreamModify(stack, tool);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user