Fixed Wireless Transmitter crashing when it is transmitting to a removed dimension, fixes #285
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
- Fixed Grid Filter only updating the Grid when reopening the GUI
|
- Fixed Grid Filter only updating the Grid when reopening the GUI
|
||||||
- Fixed Wireless Grid not working cross dimensionally
|
- Fixed Wireless Grid not working cross dimensionally
|
||||||
- Fixed Grid not displaying items after changing redstone mode
|
- Fixed Grid not displaying items after changing redstone mode
|
||||||
|
- Fixed Wireless Transmitter crashing when it is transmitting to a removed dimension
|
||||||
- Priority field and detector amount field can now display 4 digits at a time
|
- Priority field and detector amount field can now display 4 digits at a time
|
||||||
|
|
||||||
**Features**
|
**Features**
|
||||||
|
|||||||
@@ -73,10 +73,13 @@ public class NetworkNodeGraph implements INetworkNodeGraph {
|
|||||||
|
|
||||||
if (transmitter.canTransmit()) {
|
if (transmitter.canTransmit()) {
|
||||||
if (!transmitter.isSameDimension()) {
|
if (!transmitter.isSameDimension()) {
|
||||||
|
final World dimensionWorld = DimensionManager.getWorld(transmitter.getReceiverDimension());
|
||||||
|
|
||||||
|
if (dimensionWorld != null) {
|
||||||
NetworkNodeGraph dimensionGraph = new NetworkNodeGraph(controller) {
|
NetworkNodeGraph dimensionGraph = new NetworkNodeGraph(controller) {
|
||||||
@Override
|
@Override
|
||||||
public World getWorld() {
|
public World getWorld() {
|
||||||
return DimensionManager.getWorld(transmitter.getReceiverDimension());
|
return dimensionWorld;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -84,6 +87,7 @@ public class NetworkNodeGraph implements INetworkNodeGraph {
|
|||||||
|
|
||||||
newNodes.addAll(dimensionGraph.all());
|
newNodes.addAll(dimensionGraph.all());
|
||||||
newNodeHashes.addAll(dimensionGraph.allHashes());
|
newNodeHashes.addAll(dimensionGraph.allHashes());
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
BlockPos receiver = transmitter.getReceiver();
|
BlockPos receiver = transmitter.getReceiver();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user