mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-14 17:24:53 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f658e9ec57 | ||
|
|
ddf93bc425 |
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+7
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user