mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 17:47:32 +00:00
Remove Item Tool Errors
This commit is contained in:
1 parent
08a18a123e
commit
ffcc8f603f
1 file changed
-20
@@ -34,9 +34,6 @@ public class ItemNpcTool extends Item {
|
||||
public static final String[] toolTypes = new String[] {"hammer", "paintbrush"};
|
||||
public static String BRUSH_COLOR_TAG = "BrushColor";
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
private IIcon[] icons;
|
||||
|
||||
public ItemNpcTool() {
|
||||
super();
|
||||
maxStackSize = 1;
|
||||
@@ -55,23 +52,6 @@ public class ItemNpcTool extends Item {
|
||||
return super.getUnlocalizedName() + "." + toolTypes[meta];
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
@Override
|
||||
public void registerIcons(IIconRegister iconRegister) {
|
||||
icons = new IIcon[toolTypes.length];
|
||||
for (int i = 0; i < toolTypes.length; i++) {
|
||||
icons[i] = iconRegister.registerIcon("noppes:npc_tool_" + toolTypes[i]);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public IIcon getIconFromDamage(int meta) {
|
||||
if(meta < 0 || meta >= icons.length){
|
||||
meta = 0;
|
||||
}
|
||||
return icons[meta];
|
||||
}
|
||||
|
||||
@Override
|
||||
public void getSubItems(Item item, CreativeTabs tab, List subItems) {
|
||||
for (int i = 0; i < toolTypes.length; i++) {
|
||||
|
||||
Reference in new issue
Block a user