Fix crash with ext storage, fixes #178
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
**Bugfixes**
|
||||
- Improved detector model, add a better hitbox for it
|
||||
- Improved the Wireless Transmitter texture
|
||||
- Wireless Transmitter is now only bright red when connected
|
||||
- Fixed crash with External Storage
|
||||
- Made the Solderer beams be bright red when they are working
|
||||
- Added better hitbox for the Solderer
|
||||
|
||||
|
||||
@@ -31,8 +31,9 @@ public interface INetworkNode {
|
||||
/**
|
||||
* Called when this node is disconnected from a network.
|
||||
*
|
||||
* @param network The network
|
||||
*/
|
||||
void onDisconnected();
|
||||
void onDisconnected(INetworkMaster network);
|
||||
|
||||
/**
|
||||
* Called when the connection state of this node changes.
|
||||
|
||||
@@ -68,7 +68,7 @@ public abstract class TileNode extends TileBase implements INetworkNode, ISynchr
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDisconnected() {
|
||||
public void onDisconnected(INetworkMaster network) {
|
||||
onConnectionChange(network, false);
|
||||
|
||||
this.connected = false;
|
||||
|
||||
@@ -222,7 +222,7 @@ public class TileController extends TileBase implements INetworkMaster, IEnergyR
|
||||
public void disconnectAll() {
|
||||
for (INetworkNode node : nodes) {
|
||||
if (node.isConnected()) {
|
||||
node.onDisconnected();
|
||||
node.onDisconnected(this);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -447,7 +447,7 @@ public class TileController extends TileBase implements INetworkMaster, IEnergyR
|
||||
|
||||
for (INetworkNode oldNode : oldNodes) {
|
||||
if (!nodesPos.contains(oldNode.getPosition())) {
|
||||
oldNode.onDisconnected();
|
||||
oldNode.onDisconnected(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user