Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mod sorting #177

Closed
wants to merge 8 commits into from
Next Next commit
Close GUI when Monitor Returns a new Handler, closes Chest GUI when c…
…ell is removed.
  • Loading branch information
AlgorithmX2 authored and thepaperpilot committed Sep 27, 2014
commit e0bf6e3d6aa591c9716b605bf8955fe75b249888
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ public class ContainerMEMonitorable extends AEBaseContainer implements IConfigMa

public IConfigManagerHost gui;
private IGridNode networkNode;
private ITerminalHost host;

public IGridNode getNetworkNode()
{
Expand All @@ -75,6 +76,7 @@ public IGridNode getNetworkNode()
protected ContainerMEMonitorable(InventoryPlayer ip, ITerminalHost monitorable, boolean bindInventory) {
super( ip, monitorable instanceof TileEntity ? (TileEntity) monitorable : null, monitorable instanceof IPart ? (IPart) monitorable : null );

host = monitorable;
clientCM = new ConfigManager( this );

clientCM.registerSetting( Settings.SORT_BY, SortOrder.NAME );
Expand Down Expand Up @@ -139,6 +141,9 @@ public void detectAndSendChanges()
{
if ( Platform.isServer() )
{
if ( monitor != host.getItemInventory() )
isContainerValid = false;

for (Enum set : serverCM.getSettings())
{
Enum sideLocal = serverCM.getSetting( set );
Expand Down