Fixed some LESU things

EU/t and capacity are now config-driven. Note that while the "max-eu" updates when you remove LESU storage blocks, it's currently retaining the highest EU/t you get, so if you remove blocks, the GUI still says it has the same EU/t you had before you removed them. Also shortened EU display.
This commit is contained in:
joflashstudios 2015-06-19 22:31:56 -04:00
parent 238901323c
commit 4fb6f4aca6
5 changed files with 48 additions and 13 deletions

View file

@ -5,6 +5,7 @@ import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.ICrafting;
import net.minecraft.inventory.Slot;
import techreborn.config.ConfigTechReborn;
import techreborn.tiles.lesu.TileLesu;
public class ContainerLesu extends TechRebornContainer {
@ -96,7 +97,7 @@ public class ContainerLesu extends TechRebornContainer {
} else if(id == 4){
this.euStorage = value;
}
this.euStorage = (connectedBlocks * 100000) + 1000000000;
this.euStorage = ((connectedBlocks + 1) * ConfigTechReborn.lesuStoragePerBlock);
}
}