mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 03:49:29 +00:00
Make modifiers only applicable to their valid types. Fix some inconsistencies with that. Might possibly contain bugs still.
This commit is contained in:
1 parent
9d8e8128b0
commit
1cd4f214ff
7 files changed
+36
-4
No files matched your search
@@ -3,6 +3,7 @@ package tconstruct.modifiers.tools;
|
||||
import java.util.*;
|
||||
import net.minecraft.item.*;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import tconstruct.library.modifier.IModifyable;
|
||||
import tconstruct.library.tools.ToolCore;
|
||||
|
||||
public class ModRedstone extends ItemModTypeFilter
|
||||
@@ -127,6 +128,11 @@ public class ModRedstone extends ItemModTypeFilter
|
||||
tags.setString(tip, modName);
|
||||
}
|
||||
|
||||
public boolean validType (IModifyable input)
|
||||
{
|
||||
return input.getModifyType().equals("Tool");
|
||||
}
|
||||
|
||||
public boolean validType (ToolCore tool)
|
||||
{
|
||||
List list = Arrays.asList(tool.getTraits());
|
||||
|
||||
Reference in new issue
Block a user