Crossbow Modifier Graphics \o/

This commit is contained in:
Bernhard Bonigl committed 2014-10-17 01:03:53 +02:00
1 parent a7f7258b04
commit 62905da392
33 files changed
+27 -4

No files matched your search

@@ -2,6 +2,9 @@ package tconstruct.modifiers.tools;
import cofh.api.energy.IEnergyContainerItem;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import tconstruct.library.tools.ToolCore;
@@ -23,6 +26,12 @@ public class ModFlux extends ModBoolean
{
NBTTagCompound tags = tool.getTagCompound().getCompoundTag("InfiTool");
// not on ammo weapons, since they don't have durability technically
String[] traits = ((ToolCore)tool.getItem()).getTraits();
for(String trait : traits)
if("ammo".equals(trait))
return false;
ItemStack foundBattery = null;
// try to find the battery in the input
for (ItemStack stack : input)