Fix crash with ext storage, fixes #178

This commit is contained in:
Raoul Van den Berge
2016-07-10 00:47:33 +02:00
parent b70fff10db
commit f2444154d7
4 changed files with 7 additions and 4 deletions

View File

@@ -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

View File

@@ -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.

View File

@@ -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;

View File

@@ -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);
}
}
}