Added 4 View Cell Slots.

Multiple View Cells now sum together to allow more customization.
View Cells are now protected by Build Security.
Meteorite Compass now renders correctly in other peoples hands.
This commit is contained in:
AlgorithmX2
2014-03-04 21:12:23 -06:00
parent 4536189042
commit 929efa5597
30 changed files with 228 additions and 102 deletions
+11 -11
View File
@@ -70,6 +70,11 @@ public abstract class AEBaseContainer extends Container
return;
ticksSinceCheck = 0;
isContainerValid = isContainerValid && hasAccess( security, requirePower );
}
protected boolean hasAccess(SecurityPermissions perm, boolean requirePower)
{
IActionHost host = null;
if ( tileEntity instanceof IActionHost )
@@ -77,11 +82,7 @@ public abstract class AEBaseContainer extends Container
if ( part instanceof IActionHost )
host = (IActionHost) part;
if ( host == null )
{
isContainerValid = false;
}
else
if ( host != null )
{
IGridNode gn = host.getActionableNode();
if ( gn != null )
@@ -93,18 +94,17 @@ public abstract class AEBaseContainer extends Container
{
IEnergyGrid eg = g.getCache( IEnergyGrid.class );
if ( !eg.isNetworkPowered() )
{
isContainerValid = false;
return;
}
return false;
}
ISecurityGrid sg = g.getCache( ISecurityGrid.class );
if ( !sg.hasPermission( invPlayer.player, security ) )
isContainerValid = false;
if ( sg.hasPermission( invPlayer.player, perm ) )
return true;
}
}
}
return false;
}
public ContainerOpenContext openContext;