Compare commits

...
2 Commits
3 changed files with 18 additions and 4 deletions

No files matched your search

@@ -54,7 +54,7 @@ public class PageBreeder extends ControlPage<DatabaseTab> {
this,
155.0f,
I18N.localise(
"binniecore.gui.database.species.secretCount",
"binniecore.gui.database.species.secretsCount",
system.discoveredSecretCount,
system.totalSecretCount));
}
@@ -149,9 +149,17 @@ public class TransferRequest {
if (destination.getStackInSlot(slot) == null) {
insertedSlots.add(new TransferSlot(slot, destination));
if (doAdd) {
destination.setInventorySlotContents(slot, item.copy());
ItemStack movedStack = item.copy();
if (movedStack.stackSize > destination.getInventoryStackLimit()) {
movedStack.stackSize = destination.getInventoryStackLimit();
}
item.stackSize -= movedStack.stackSize;
destination.setInventorySlotContents(slot, movedStack);
if (item.stackSize <= 0) {
item = null;
}
}
return null;
return item;
}
}
}
@@ -18,7 +18,13 @@ public class StimulatorAlvearyPackage extends AlvearyMachine.AlvearyPackage impl
@Override
public void createMachine(Machine machine) {
new ComponentExtraBeeGUI(machine, ExtraBeeGUID.AlvearyStimulator);
ComponentInventorySlots inventory = new ComponentInventorySlots(machine);
ComponentInventorySlots inventory = new ComponentInventorySlots(machine) {
@Override
public int getInventoryStackLimit() {
return 1;
}
};
inventory.addSlot(AlvearyStimulator.SLOT_CIRCUIT, "circuit");
inventory.getSlot(AlvearyStimulator.SLOT_CIRCUIT).setValidator(new CircuitSlotValidator());
new ComponentPowerReceptor(machine);