Feature: #0856 - Crafting Terminal requires Crafting Permissions to open.

Whenever a player without "craft"-ing permissions attempts to open a crafting or pattern terminal, they will open the normal terminal GUI instead
This commit is contained in:
The Paper Pilot
2014-09-26 16:26:41 -05:00
parent 181b0b0a6a
commit 15f9a64ba3
3 changed files with 32 additions and 7 deletions
@@ -77,7 +77,7 @@ public class PartTerminal extends PartMonitor implements ITerminalHost, IConfigM
cm.registerSetting( Settings.SORT_DIRECTION, SortDir.ASCENDING );
}
public GuiBridge getGui()
public GuiBridge getGui( EntityPlayer player )
{
return GuiBridge.GUI_ME;
}
@@ -92,7 +92,7 @@ public class PartTerminal extends PartMonitor implements ITerminalHost, IConfigM
if ( Platform.isClient() )
return true;
Platform.openGUI( player, getHost().getTile(), side, getGui() );
Platform.openGUI( player, getHost().getTile(), side, getGui( player ) );
return true;
}
@@ -151,5 +151,4 @@ public class PartTerminal extends PartMonitor implements ITerminalHost, IConfigM
{
host.markForSave();
}
}