Mark All the Things as Dirty.
This commit is contained in:
parent
608edc56b1
commit
7367502d75
|
@ -60,12 +60,16 @@ public class AdaptorIInventory extends InventoryAdaptor
|
||||||
rv.stackSize = lhow_many;
|
rv.stackSize = lhow_many;
|
||||||
|
|
||||||
if ( is.stackSize == rv.stackSize )
|
if ( is.stackSize == rv.stackSize )
|
||||||
|
{
|
||||||
i.setInventorySlotContents( x, null );
|
i.setInventorySlotContents( x, null );
|
||||||
|
i.markDirty();
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ItemStack po = is.copy();
|
ItemStack po = is.copy();
|
||||||
po.stackSize -= rv.stackSize;
|
po.stackSize -= rv.stackSize;
|
||||||
i.setInventorySlotContents( x, po );
|
i.setInventorySlotContents( x, po );
|
||||||
|
i.markDirty();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -139,12 +143,16 @@ public class AdaptorIInventory extends InventoryAdaptor
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( is.stackSize == lhow_many )
|
if ( is.stackSize == lhow_many )
|
||||||
|
{
|
||||||
i.setInventorySlotContents( x, null );
|
i.setInventorySlotContents( x, null );
|
||||||
|
i.markDirty();
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ItemStack po = is.copy();
|
ItemStack po = is.copy();
|
||||||
po.stackSize -= lhow_many;
|
po.stackSize -= lhow_many;
|
||||||
i.setInventorySlotContents( x, po );
|
i.setInventorySlotContents( x, po );
|
||||||
|
i.markDirty();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -243,6 +251,7 @@ public class AdaptorIInventory extends InventoryAdaptor
|
||||||
|
|
||||||
is.stackSize += used;
|
is.stackSize += used;
|
||||||
i.setInventorySlotContents( x, is );
|
i.setInventorySlotContents( x, is );
|
||||||
|
i.markDirty();
|
||||||
|
|
||||||
left.stackSize -= used;
|
left.stackSize -= used;
|
||||||
if ( left.stackSize <= 0 )
|
if ( left.stackSize <= 0 )
|
||||||
|
|
Loading…
Reference in a new issue