Fix all Channel Behavior and its mis-behaving.
This commit is contained in:
@@ -35,6 +35,9 @@ public class PartConversionMonitor extends PartStorageMonitor
|
||||
if ( Platform.isClient() )
|
||||
return true;
|
||||
|
||||
if ( !proxy.isActive() )
|
||||
return false;
|
||||
|
||||
boolean ModeB = false;
|
||||
|
||||
ItemStack item = player.getCurrentEquippedItem();
|
||||
|
||||
@@ -123,6 +123,9 @@ public class PartStorageMonitor extends PartMonitor implements IPartStorageMonit
|
||||
if ( Platform.isClient() )
|
||||
return true;
|
||||
|
||||
if ( !proxy.isActive() )
|
||||
return false;
|
||||
|
||||
TileEntity te = this.tile;
|
||||
ItemStack eq = player.getCurrentEquippedItem();
|
||||
if ( Platform.isWrench( player, eq, te.xCoord, te.yCoord, te.zCoord ) )
|
||||
|
||||
@@ -6,6 +6,7 @@ import net.minecraft.util.Vec3;
|
||||
import appeng.api.storage.IMEMonitor;
|
||||
import appeng.api.storage.IStorageMonitorable;
|
||||
import appeng.client.texture.CableBusTextures;
|
||||
import appeng.core.localization.PlayerMessages;
|
||||
import appeng.core.sync.GuiBridge;
|
||||
import appeng.me.GridAccessException;
|
||||
import appeng.util.Platform;
|
||||
@@ -29,7 +30,16 @@ public class PartTerminal extends PartMonitor implements IStorageMonitorable
|
||||
if ( Platform.isClient() )
|
||||
return true;
|
||||
|
||||
Platform.openGUI( player, getHost().getTile(), side, GuiBridge.GUI_ME );
|
||||
if ( proxy.isActive() )
|
||||
Platform.openGUI( player, getHost().getTile(), side, GuiBridge.GUI_ME );
|
||||
else
|
||||
{
|
||||
if ( proxy.isPowered() )
|
||||
player.sendChatToPlayer( PlayerMessages.CommunicationError.get() );
|
||||
else
|
||||
player.sendChatToPlayer( PlayerMessages.MachineNotPowered.get() );
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user