mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-12-23 03:49:22 +01:00
Merge pull request #934 from thiakil/itemstack-handler
don't return internal copy of itemstack on simulate
This commit is contained in:
commit
6a16bbfc4b
1 changed files with 2 additions and 1 deletions
|
@ -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){
|
||||
|
|
Loading…
Reference in a new issue