mirror of
https://github.com/GTNewHorizons/Electro-Magic-Tools.git
synced 2026-11-20 03:59:36 +00:00
Fix solar panel draining Thaumcraft node twice (#98)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
940073709b
commit
1d81835e32
1 file changed
+2
-4
@@ -162,9 +162,7 @@ public class TileEntitySolarBase extends TileEntityEMT implements IInventory, IW
|
||||
case AQUA: {
|
||||
if (worldObj.isThundering()) return 6F;
|
||||
else if (worldObj.isRaining()) return 3F;
|
||||
else if (!worldObj.isThundering() && !worldObj.isRaining()
|
||||
&& worldObj.getBlock(xCoord, yCoord + 1, zCoord).equals(Blocks.water))
|
||||
return 2F;
|
||||
else if (worldObj.getBlock(xCoord, yCoord + 1, zCoord).equals(Blocks.water)) return 2F;
|
||||
else return 1F;
|
||||
}
|
||||
case IGNIS: {
|
||||
@@ -193,7 +191,7 @@ public class TileEntitySolarBase extends TileEntityEMT implements IInventory, IW
|
||||
this.isActive = true;
|
||||
if (side) {
|
||||
this.generating = output * calc_multi();
|
||||
this.energySource.addEnergy(this.output * calc_multi());
|
||||
this.energySource.addEnergy(this.generating);
|
||||
}
|
||||
} else {
|
||||
isActive = false;
|
||||
|
||||
Reference in new issue
Block a user