mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-28 07:55:41 +00:00
Switch on lights when they get wireless power, too
This commit is contained in:
1 parent
b86a05e391
commit
fd9f9ba42b
1 file changed
+4
@@ -146,7 +146,11 @@ public class TileElectricLight extends TileEntityEio implements IInternalPowerRe
|
||||
|
||||
if (chargedLocation != null) {
|
||||
if (energyStoredRF < getMaxEnergyStored()) {
|
||||
boolean needInit = energyStoredRF == 0;
|
||||
energyStoredRF += chargedLocation.takeEnergy(Math.min(getMaxEnergyStored() - energyStoredRF, 10));
|
||||
if (needInit && energyStoredRF > 0) {
|
||||
init = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user