mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-20 12:19:55 +00:00
#1548 Wireless charger redstone control does not affect wireless lights
This commit is contained in:
1 parent
240a3ae9ab
commit
c4d623c9e0
1 file changed
+6
-3
@@ -125,9 +125,12 @@ public class TileWirelessCharger extends TileEntityEio implements IInternalPower
|
||||
|
||||
@Override
|
||||
public int takeEnergy(int max) {
|
||||
int prev = storedEnergyRF;
|
||||
storedEnergyRF = Math.max(0, storedEnergyRF - max);
|
||||
return prev - storedEnergyRF;
|
||||
if (isActive()) {
|
||||
int prev = storedEnergyRF;
|
||||
storedEnergyRF = Math.max(0, storedEnergyRF - max);
|
||||
return prev - storedEnergyRF;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user