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