mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-12-13 14:49:03 +00:00
Charging energy from biomass now looks up value in config.properties
This commit is contained in:
@@ -39,7 +39,8 @@ public class CubotInventory extends CpuHardware {
|
||||
|
||||
} else if (a == INV_CLEAR) {
|
||||
if (cubot.getHeldItem() == 0x0001) {
|
||||
cubot.storeEnergy(4000);
|
||||
int energy = GameServer.INSTANCE.getConfig().getInt("biomassEnergyValue");
|
||||
cubot.storeEnergy(energy);
|
||||
cubot.setHeldItem(0);
|
||||
}
|
||||
else if (cubot.spendEnergy(100)) {
|
||||
|
||||
Reference in New Issue
Block a user