mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-19 18:46:43 +00:00
Inventory hardware: Now clearing a biomass gains 4000 kJ.
This commit is contained in:
parent
1e26c63358
commit
7ee361b0bc
@ -38,7 +38,11 @@ public class CubotInventory extends CpuHardware {
|
||||
getCpu().getRegisterSet().getRegister("B").setValue(cubot.getHeldItem());
|
||||
|
||||
} else if (a == INV_CLEAR) {
|
||||
if (cubot.spendEnergy(100)) {
|
||||
if (cubot.getHeldItem() == 0x0001) {
|
||||
cubot.storeEnergy(4000);
|
||||
cubot.setHeldItem(0);
|
||||
}
|
||||
else if (cubot.spendEnergy(100)) {
|
||||
cubot.setHeldItem(0);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user