public boolean handleMouseClicked(int x, int y, int mouseButton) {
if (isAccessButton(x, y)) {
if (!Proxies.common.isSimulating(((TileEntity) tile).getWorldObj())) {
TileEntity te = (TileEntity) tile;
Proxies.net.sendToServer(new PacketCoordinates(PacketIds.ACCESS_SWITCH, te.xCoord, te.yCoord, te.zCoord));
}
tile.switchAccessRule(manager.minecraft.thePlayer);
return true;
}