Fix derp in WrappedStack constructor, when given another WrappedStack as

the parameter
This commit is contained in:
pahimar 2013-11-27 14:51:10 -05:00
parent f8b998eec1
commit 915fac1b1b

View file

@ -119,11 +119,11 @@ public class WrappedStack
}
else if (object instanceof WrappedStack) {
WrappedStack wrappedStack = (WrappedStack) object;
WrappedStack wrappedStackObject = (WrappedStack) object;
className = object.getClass().getSimpleName();
this.stackSize = wrappedStack.stackSize;
this.wrappedStack = wrappedStack.wrappedStack;
className = wrappedStackObject.wrappedStack.getClass().getSimpleName();
this.stackSize = wrappedStackObject.stackSize;
this.wrappedStack = wrappedStackObject.wrappedStack;
}
else if (object instanceof String) {
@ -414,7 +414,6 @@ public class WrappedStack
}
wrappedStack = fluidStack;
}
}
if (wrappedStack != null) {