mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 08:48:34 +01:00
don't return internal copy of itemstack on simulate
This commit is contained in:
parent
7d28e768ca
commit
2f2de97bf2
1 changed files with 2 additions and 1 deletions
|
@ -103,8 +103,9 @@ public class ItemStackHandlerCustom extends ItemStackHandler{
|
||||||
if(!simulate){
|
if(!simulate){
|
||||||
this.stacks.set(slot, StackUtil.getNull());
|
this.stacks.set(slot, StackUtil.getNull());
|
||||||
this.onContentsChanged(slot);
|
this.onContentsChanged(slot);
|
||||||
|
return existing;
|
||||||
}
|
}
|
||||||
return existing;
|
return existing.copy();
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
if(!simulate){
|
if(!simulate){
|
||||||
|
|
Loading…
Reference in a new issue