mirror of
https://github.com/GTNewHorizons/Electro-Magic-Tools.git
synced 2026-11-26 06:43:01 +00:00
fixed weird behavior of GUIs due to short Overflows
fixed Aqua Infused Gen not working underwater did some changes to the reflected gens, still don't work.
This commit is contained in:
1 parent
d229201b90
commit
63f04556e2
13 files changed
+119
-202
No files matched your search
@@ -21,11 +21,14 @@ public class TileEntityOrderSolar extends TileEntitySolarBase {
|
||||
public void createEnergy() {
|
||||
if ((this.worldObj.canBlockSeeTheSky(this.xCoord, this.yCoord + 1, this.zCoord)) && (!this.worldObj.isRaining()) && (!this.worldObj.isThundering())) {
|
||||
isActive = true;
|
||||
if (FMLCommonHandler.instance().getEffectiveSide().isServer()) {
|
||||
if (side) {
|
||||
this.energySource.addEnergy(this.output*calc_multi());
|
||||
this.generating=output*calc_multi();
|
||||
}
|
||||
}else isActive = false;
|
||||
}else {
|
||||
isActive = false;
|
||||
this.generating=0;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user