return;
// Dispose correctly of old chipsets
if (sockets.getStackInSlot(slot) != null)
if (ChipsetManager.circuitRegistry.isChipset(sockets.getStackInSlot(slot))) {
ICircuitBoard chipset = ChipsetManager.circuitRegistry.getCircuitboard(sockets.getStackInSlot(slot));
if (chipset != null)
chipset.onRemoval(this);
}
if (stack == null) {
sockets.setInventorySlotContents(slot, stack);
return;
}
sockets.setInventorySlotContents(slot, stack);
ICircuitBoard chipset = ChipsetManager.circuitRegistry.getCircuitboard(stack);
if (chipset != null)
chipset.onInsertion(this);
}