Updates to the awareness block #55
@ -82,9 +82,10 @@ public class AwarenessBlockEntity extends BlockEntity {
|
||||
}
|
||||
}
|
||||
|
||||
public boolean deductEnergyUse() {
|
||||
if (energy.getMaxEnergyStored() >= ENERGY_REQUIRED) {
|
||||
energy.extractEnergy(ENERGY_REQUIRED, false);
|
||||
public boolean deductEnergyUse(int radius) {
|
||||
int cost = radius * ENERGY_REQUIRED;
|
||||
if (energy.getMaxEnergyStored() >= cost) {
|
||||
energy.extractEnergy(cost, false);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user