Fix comp drawer not updating texture immediately

This commit is contained in:
Justin Aquadro committed 2015-02-03 23:54:08 -05:00
1 parent 3b30c9c3f6
commit 842811eb50
1 file changed
+4 -2
@@ -70,9 +70,9 @@ public class TileEntityDrawersComp extends TileEntityDrawers
@Override
public int putItemsIntoSlot (int slot, ItemStack stack, int count) {
int added = 0;
if (stack != null && convRate != null && convRate[0] == 0) {
populateSlots(stack);
int added = 0;
for (int i = 0; i < getDrawerCount(); i++) {
if (BaseDrawerData.areItemsEqual(protoStack[i], stack))
@@ -84,9 +84,11 @@ public class TileEntityDrawersComp extends TileEntityDrawers
if (drawer instanceof CompDrawerData)
((CompDrawerData) drawer).refresh();
}
}
return super.putItemsIntoSlot(slot, stack, count);
return added + super.putItemsIntoSlot(slot, stack, count);
}
@Override