Fixed Bug: #0734 - ME IO Port GUI/channel

This commit is contained in:
AlgorithmX2 2014-07-27 12:12:45 -05:00
parent 17d390c840
commit 823fa4bd73
2 changed files with 6 additions and 3 deletions

View file

@ -576,11 +576,12 @@ public abstract class AEBaseGui extends GuiContainer
this.zLevel = 100.0F;
itemRender.zLevel = 100.0F;
GL11.glPushAttrib( GL11.GL_ALL_ATTRIB_BITS );
GL11.glEnable( GL11.GL_LIGHTING );
GL11.glEnable( GL12.GL_RESCALE_NORMAL );
RenderHelper.enableGUIStandardItemLighting();
itemRender.renderItemAndEffectIntoGUI( this.fontRendererObj, this.mc.renderEngine, is, x, y );
GL11.glDisable( GL11.GL_LIGHTING );
GL11.glPopAttrib();
itemRender.zLevel = 0.0F;
this.zLevel = 0.0F;

View file

@ -12,6 +12,7 @@ import appeng.api.config.RedstoneMode;
import appeng.api.config.Settings;
import appeng.api.config.Upgrades;
import appeng.api.implementations.IUpgradeableHost;
import appeng.api.networking.GridFlags;
import appeng.api.networking.IGridNode;
import appeng.api.networking.energy.IEnergySource;
import appeng.api.networking.security.BaseActionSource;
@ -84,6 +85,7 @@ public class TileIOPort extends AENetworkInvTile implements IUpgradeableHost, IC
public TileIOPort() {
addNewHandler( new TileIOPortHandler() );
gridProxy.setFlags( GridFlags.REQUIRE_CHANNEL );
cm.registerSetting( Settings.REDSTONE_CONTROLLED, RedstoneMode.IGNORE );
cm.registerSetting( Settings.FULLNESS_MODE, FullnessMode.EMPTY );
cm.registerSetting( Settings.OPERATION_MODE, OperationMode.EMPTY );
@ -340,7 +342,7 @@ public class TileIOPort extends AENetworkInvTile implements IUpgradeableHost, IC
if ( src instanceof IMEMonitor )
myList = ((IMEMonitor) src).getStorageList();
else
myList = src.getAvailableItems( src.getChannel().createList() );
myList = src.getAvailableItems( src.getChannel().createList() );
boolean didStuff;
@ -383,7 +385,7 @@ public class TileIOPort extends AENetworkInvTile implements IUpgradeableHost, IC
itemsToMove -= possible;
didStuff = true;
}
break;
}
}