don't return internal copy of itemstack on simulate

This commit is contained in:
Xander 2017-10-01 13:05:47 +08:00
parent 7d28e768ca
commit 2f2de97bf2

View file

@ -103,8 +103,9 @@ public class ItemStackHandlerCustom extends ItemStackHandler{
if(!simulate){
this.stacks.set(slot, StackUtil.getNull());
this.onContentsChanged(slot);
return existing;
}
return existing;
return existing.copy();
}
else{
if(!simulate){