aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/core/gui/machine
diff options
context:
space:
mode:
authorJordan Byrne <draknyte1@hotmail.com>2018-03-02 14:37:13 +1000
committerJordan Byrne <draknyte1@hotmail.com>2018-03-02 14:37:13 +1000
commit718b0e6773693f30b3c61a0a069a446a6c8f6c4d (patch)
treea07d8be68c634a697dce11220db730f371e31b84 /src/Java/gtPlusPlus/core/gui/machine
parent3fa1a63540b9bd279d6ac1c91e37c4eb29b024a1 (diff)
downloadGT5-Unofficial-718b0e6773693f30b3c61a0a069a446a6c8f6c4d.tar.gz
GT5-Unofficial-718b0e6773693f30b3c61a0a069a446a6c8f6c4d.tar.bz2
GT5-Unofficial-718b0e6773693f30b3c61a0a069a446a6c8f6c4d.zip
$ Findbugs cleanup.
% Revised Tesseract run-time costs.
Diffstat (limited to 'src/Java/gtPlusPlus/core/gui/machine')
-rw-r--r--src/Java/gtPlusPlus/core/gui/machine/GUI_TradeTable.java14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/Java/gtPlusPlus/core/gui/machine/GUI_TradeTable.java b/src/Java/gtPlusPlus/core/gui/machine/GUI_TradeTable.java
index 7c67df905b..7c71f09302 100644
--- a/src/Java/gtPlusPlus/core/gui/machine/GUI_TradeTable.java
+++ b/src/Java/gtPlusPlus/core/gui/machine/GUI_TradeTable.java
@@ -17,7 +17,7 @@ import gtPlusPlus.core.tileentities.machines.TileEntityTradeTable;
@SideOnly(Side.CLIENT)
public class GUI_TradeTable extends GuiContainer {
-
+
TileEntityTradeTable mThisTable;
String mOwnerName;
@@ -25,18 +25,10 @@ public class GUI_TradeTable extends GuiContainer {
public GUI_TradeTable(final InventoryPlayer player_inventory, final TileEntityTradeTable te, final String mOwnerName){
super(new Container_TradeTable(player_inventory, te));
-
- if (te == null){
- this.mThisTable = null;
- this.mOwnerName = mOwnerName;
- Logger.INFO("Set invalid TE in GUI");
- }
- else {
- if (te.isServerSide()){
+ if (te.isServerSide()){
mThisTable = te;
this.mOwnerName = mOwnerName;
Logger.INFO("Set valid TE in GUI");
- }
}
}
@@ -45,7 +37,7 @@ public class GUI_TradeTable extends GuiContainer {
this.fontRendererObj.drawString(I18n.format("Owner - "+this.mOwnerName, new Object[0]), 28, 66, 4210752);
//this.fontRendererObj.drawString(I18n.format("container.inventory", new Object[0]), 8, this.ySize - 96 + 2, 4210752);
}
-
+
@Override
protected void drawGuiContainerBackgroundLayer(final float f, final int i, final int j){
GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);