commit
f11b700704
1 changed files with 20 additions and 6 deletions
|
@ -106,11 +106,18 @@ public class WrappedStack implements Comparable<WrappedStack>
|
||||||
|
|
||||||
if (object instanceof ItemStack)
|
if (object instanceof ItemStack)
|
||||||
{
|
{
|
||||||
ItemStack itemStack = ((ItemStack) object).copy();
|
if (((ItemStack) object).getItem() != null)
|
||||||
|
{
|
||||||
stackSize = itemStack.stackSize;
|
ItemStack itemStack = ((ItemStack) object).copy();
|
||||||
itemStack.stackSize = 1;
|
stackSize = itemStack.stackSize;
|
||||||
wrappedStack = itemStack;
|
itemStack.stackSize = 1;
|
||||||
|
wrappedStack = itemStack;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
stackSize = -1;
|
||||||
|
wrappedStack = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (object instanceof OreStack)
|
else if (object instanceof OreStack)
|
||||||
{
|
{
|
||||||
|
@ -259,10 +266,17 @@ public class WrappedStack implements Comparable<WrappedStack>
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else if (object instanceof Item || object instanceof Block || object instanceof ItemStack)
|
else if (object instanceof Item || object instanceof Block)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
else if (object instanceof ItemStack)
|
||||||
|
{
|
||||||
|
if (((ItemStack)object).getItem() != null)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
else if (object instanceof OreStack)
|
else if (object instanceof OreStack)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue