New system for recycler registry, juste wool and clay not work, i d'ont why this not work :/
This commit is contained in:
parent
e4fa8849fb
commit
a1335f118a
2 changed files with 1089 additions and 864 deletions
|
@ -12,6 +12,17 @@ public class ScrapboxList
|
||||||
|
|
||||||
public static void addItemStackToList(ItemStack stack)
|
public static void addItemStackToList(ItemStack stack)
|
||||||
{
|
{
|
||||||
|
if (!hasItems(stack))
|
||||||
stacks.add(stack);
|
stacks.add(stack);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static boolean hasItems(ItemStack stack)
|
||||||
|
{
|
||||||
|
for (ItemStack s : stacks)
|
||||||
|
{
|
||||||
|
if (stack.getItem().getItemStackDisplayName(stack).equals(s.getItem().getItemStackDisplayName(stack)))
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue