Fix issue with upgrades no being available on load.
This commit is contained in:
parent
ef4efd5ce0
commit
4e28df467f
|
@ -3,6 +3,7 @@ package appeng.parts.automation;
|
|||
import net.minecraft.inventory.IInventory;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import appeng.api.config.Upgrades;
|
||||
import appeng.api.implementations.IUpgradeModule;
|
||||
import appeng.tile.inventory.AppEngInternalInventory;
|
||||
|
@ -112,6 +113,13 @@ public class UpgradeInventory extends AppEngInternalInventory implements IAEAppE
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void readFromNBT(NBTTagCompound target)
|
||||
{
|
||||
super.readFromNBT( target );
|
||||
updateUpgradeInfo();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onChangeInventory(IInventory inv, int slot, InvOperation mc, ItemStack removedStack, ItemStack newStack)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue