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:
Andreyandgithub-actions[bot] authored and GitHub committed 2025-08-04 08:17:34 +07:00
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;