From 842811eb50373dfa5c21d7d4a269d5f4877735f2 Mon Sep 17 00:00:00 2001 From: Justin Aquadro Date: Tue, 3 Feb 2015 23:54:08 -0500 Subject: [PATCH] Fix comp drawer not updating texture immediately --- .../storagedrawers/block/tile/TileEntityDrawersComp.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/com/jaquadro/minecraft/storagedrawers/block/tile/TileEntityDrawersComp.java b/src/com/jaquadro/minecraft/storagedrawers/block/tile/TileEntityDrawersComp.java index 459adc7..08b8191 100644 --- a/src/com/jaquadro/minecraft/storagedrawers/block/tile/TileEntityDrawersComp.java +++ b/src/com/jaquadro/minecraft/storagedrawers/block/tile/TileEntityDrawersComp.java @@ -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