mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-21 12:42:57 +00:00
Crossbow Modifier Graphics \o/
This commit is contained in:
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)
|
||||
|
||||
Reference in new issue
Block a user