mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 15:18:34 +01:00
do it regardless + tesla loc
This commit is contained in:
parent
24075e70e9
commit
ab0c99cd0b
2 changed files with 13 additions and 16 deletions
|
@ -16,6 +16,7 @@ import de.ellpeck.actuallyadditions.mod.network.PacketClientToServer;
|
|||
import de.ellpeck.actuallyadditions.mod.network.PacketHandler;
|
||||
import de.ellpeck.actuallyadditions.mod.tile.TileEntityBase;
|
||||
import de.ellpeck.actuallyadditions.mod.util.AssetUtil;
|
||||
import de.ellpeck.actuallyadditions.mod.util.ModUtil;
|
||||
import de.ellpeck.actuallyadditions.mod.util.StringUtil;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.gui.Gui;
|
||||
|
@ -50,10 +51,8 @@ public class EnergyDisplay extends Gui{
|
|||
this.outline = outline;
|
||||
this.drawTextNextTo = drawTextNextTo;
|
||||
|
||||
if(TileEntityBase.teslaLoaded){
|
||||
this.displayTesla = PlayerData.getDataFromPlayer(Minecraft.getMinecraft().thePlayer).theCompound.getBoolean("DisplayTesla");
|
||||
}
|
||||
}
|
||||
|
||||
public void draw(){
|
||||
Minecraft mc = Minecraft.getMinecraft();
|
||||
|
@ -87,9 +86,7 @@ public class EnergyDisplay extends Gui{
|
|||
|
||||
List<String> text = new ArrayList<String>();
|
||||
text.add(this.getOverlayText());
|
||||
if(TileEntityBase.teslaLoaded){
|
||||
text.add(TextFormatting.GRAY+""+TextFormatting.ITALIC+"Click to change mode!");
|
||||
}
|
||||
text.add(TextFormatting.GRAY+""+TextFormatting.ITALIC+StringUtil.localize("info."+ModUtil.MOD_ID+".energy.to"+(this.displayTesla ? "RF" : "T")));
|
||||
GuiUtils.drawHoveringText(text, mouseX, mouseY, mc.displayWidth, mc.displayHeight, -1, mc.fontRendererObj);
|
||||
}
|
||||
}
|
||||
|
@ -109,7 +106,6 @@ public class EnergyDisplay extends Gui{
|
|||
}
|
||||
|
||||
private void changeDisplayMode(){
|
||||
if(TileEntityBase.teslaLoaded){
|
||||
NBTTagCompound data = new NBTTagCompound();
|
||||
|
||||
this.displayTesla = !this.displayTesla;
|
||||
|
@ -121,5 +117,4 @@ public class EnergyDisplay extends Gui{
|
|||
dataToSend.setInteger("PlayerID", Minecraft.getMinecraft().thePlayer.getEntityId());
|
||||
PacketHandler.theNetwork.sendToServer(new PacketClientToServer(dataToSend, PacketHandler.CHANGE_PLAYER_DATA_HANDLER));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -572,6 +572,8 @@ info.actuallyadditions.booklet.edition=Edition
|
|||
info.actuallyadditions.deathRecorded=Your death has been recorded. Use a Death Tracker to find the death location!
|
||||
info.actuallyadditions.placer.sides.1=Placement Sides
|
||||
info.actuallyadditions.placer.sides.2=Usually when placing down blocks, they are placed towards the side of another block that you are looking at. Because the Phantom Placer can place blocks in mid-air, it doesn't know that. Usually you should just set it to a solid side.
|
||||
info.actuallyadditions.energy.toRF=Click for Redstone Flux mode!
|
||||
info.actuallyadditions.energy.toT=Click for Tesla mode!
|
||||
|
||||
#Container Names
|
||||
container.actuallyadditions.inputter.name=ESD
|
||||
|
|
Loading…
Reference in a new issue