Replace call to simple getter from within class with inlined version

This commit is contained in:
thatsIch
2015-03-26 10:23:59 +01:00
parent e41d6a0289
commit 4b4693498d
22 changed files with 56 additions and 47 deletions
@@ -280,8 +280,10 @@ public class WirelessTerminalGuiObject implements IPortableCell, IActionHost
if ( this.wth != null && this.effectiveItem != null )
{
if ( mode == Actionable.SIMULATE )
return this.wth.hasPower( this.myPlayer, amt, this.getItemStack() ) ? amt : 0;
return this.wth.usePower( this.myPlayer, amt, this.getItemStack() ) ? amt : 0;
{
return this.wth.hasPower( this.myPlayer, amt, this.effectiveItem ) ? amt : 0;
}
return this.wth.usePower( this.myPlayer, amt, this.effectiveItem ) ? amt : 0;
}
return 0.0;
}