Added a missing markDirty in AdaptorIInventory
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
|
||||
package appeng.util.inv;
|
||||
|
||||
|
||||
import java.util.Iterator;
|
||||
|
||||
import net.minecraft.inventory.IInventory;
|
||||
@@ -26,13 +27,15 @@ import appeng.api.config.FuzzyMode;
|
||||
import appeng.util.InventoryAdaptor;
|
||||
import appeng.util.Platform;
|
||||
|
||||
|
||||
public class AdaptorIInventory extends InventoryAdaptor
|
||||
{
|
||||
|
||||
private final IInventory i;
|
||||
private final boolean wrapperEnabled;
|
||||
|
||||
public AdaptorIInventory(IInventory s) {
|
||||
public AdaptorIInventory( IInventory s )
|
||||
{
|
||||
i = s;
|
||||
wrapperEnabled = s instanceof IInventoryWrapper;
|
||||
}
|
||||
@@ -249,10 +252,10 @@ public class AdaptorIInventory extends InventoryAdaptor
|
||||
left.stackSize -= thisSlot.stackSize;
|
||||
|
||||
i.setInventorySlotContents( x, thisSlot );
|
||||
i.markDirty();
|
||||
|
||||
if ( left.stackSize <= 0 )
|
||||
{
|
||||
// i.markDirty();
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -274,7 +277,6 @@ public class AdaptorIInventory extends InventoryAdaptor
|
||||
left.stackSize -= used;
|
||||
if ( left.stackSize <= 0 )
|
||||
{
|
||||
// i.markDirty();
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user