[3.2.4] Compacting drawer doesn't update front properly
Belgabor opened this issue ยท 1 comments
Came across this while updating my code, I thought it was my fault at first, but the compacting drawer does it as well =)
If you insert something that has multiple stages into an empty compacting drawer the front texture doesn't update properly, it still shows the darker lower slots.
For my code I fixed it like this, not sure if it's the best solution, but it works:
private void populateSlot (int slot, ItemStack stack, int conversion) {
convRate[slot] = conversion;
protoStack[slot] = stack==null?null:stack.copy();
//centralInventory.setStoredItem(slot, stack, 0);
//getDrawer(slot).setStoredItem(stack, 0);
if (worldObj != null && !worldObj.isRemote) {
IBlockState state = worldObj.getBlockState(getPos());
worldObj.notifyBlockUpdate(getPos(), state, state, 3);
}
}