Pretty much all of security minus the gui.
and all the stuff I did that i forgot to comment.
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
package appeng.container.implementations;
|
||||
|
||||
import net.minecraft.entity.player.InventoryPlayer;
|
||||
import appeng.api.config.SecurityPermissions;
|
||||
import appeng.container.AEBaseContainer;
|
||||
import appeng.tile.misc.TileSecurity;
|
||||
|
||||
public class ContainerSecurity extends AEBaseContainer
|
||||
{
|
||||
|
||||
TileSecurity myte;
|
||||
|
||||
public ContainerSecurity(InventoryPlayer ip, TileSecurity te) {
|
||||
super( ip, te, null );
|
||||
myte = te;
|
||||
|
||||
bindPlayerInventory( ip, 0, 199 - /* height of playerinventory */82 );
|
||||
}
|
||||
|
||||
@Override
|
||||
public void detectAndSendChanges()
|
||||
{
|
||||
verifyPermissions( SecurityPermissions.SECURITY, true );
|
||||
|
||||
super.detectAndSendChanges();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user