diff --git a/src/main/java/dan200/computercraft/shared/peripheral/modem/ModemPeripheral.java b/src/main/java/dan200/computercraft/shared/peripheral/modem/ModemPeripheral.java index 38ab8b2c3..bf7f00d51 100644 --- a/src/main/java/dan200/computercraft/shared/peripheral/modem/ModemPeripheral.java +++ b/src/main/java/dan200/computercraft/shared/peripheral/modem/ModemPeripheral.java @@ -39,6 +39,20 @@ public abstract class ModemPeripheral implements IPeripheral, IPacketSender, IPa return m_state; } + @Deprecated + public boolean pollChanged() + { + // Only for backwards compatibiliy + return m_state.pollChanged(); + } + + @Deprecated + public boolean isActive() + { + // Only for backwards compatibiliy + return m_state.isOpen(); + } + private synchronized void setNetwork( IPacketNetwork network ) { if( m_network == network ) return; diff --git a/src/main/java/dan200/computercraft/shared/peripheral/modem/WirelessModemPeripheral.java b/src/main/java/dan200/computercraft/shared/peripheral/modem/WirelessModemPeripheral.java index 43f22ad98..37aab3bda 100644 --- a/src/main/java/dan200/computercraft/shared/peripheral/modem/WirelessModemPeripheral.java +++ b/src/main/java/dan200/computercraft/shared/peripheral/modem/WirelessModemPeripheral.java @@ -24,6 +24,7 @@ public abstract class WirelessModemPeripheral extends ModemPeripheral @Deprecated public WirelessModemPeripheral( boolean advanced ) { + // Only for backwards compatibiliy this( new ModemState(), advanced ); } @@ -32,7 +33,7 @@ public abstract class WirelessModemPeripheral extends ModemPeripheral { return m_advanced; } - + @Override public double getRange() { @@ -62,7 +63,7 @@ public abstract class WirelessModemPeripheral extends ModemPeripheral return 0.0; } } - + @Override protected IPacketNetwork getNetwork() {