mirror of
https://github.com/GTNewHorizons/StorageDrawers.git
synced 2026-11-21 20:52:27 +00:00
Fix comp drawer not updating texture immediately
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user