Re-added interdimensional networks with the Network Transmitter and Network Receiver. Fixes #2605
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
### 1.9.2
|
### 1.9.2
|
||||||
- Fixed crash with Forge version 67 (Darkere)
|
- Fixed crash with Forge version 67 (Darkere)
|
||||||
- Networks that are in a chunk that isn't loaded will no longer work, they will turn off. Chunkload the Controller to maintain a functioning network over long distances (Darkere/raoulvdberge)
|
- Networks that are in a chunk that isn't loaded will no longer work, they will turn off. Chunkload the Controller to maintain a functioning network over long distances (Darkere/raoulvdberge)
|
||||||
|
- Re-added interdimensional networks with the Network Transmitter and Network Receiver (raoulvdberge)
|
||||||
|
|
||||||
### 1.9.1
|
### 1.9.1
|
||||||
- Fixed server crash (raoulvdberge)
|
- Fixed server crash (raoulvdberge)
|
||||||
|
@@ -72,7 +72,6 @@ public abstract class NetworkNode implements INetworkNode, INetworkNodeVisitor {
|
|||||||
@Nonnull
|
@Nonnull
|
||||||
@Override
|
@Override
|
||||||
public ItemStack getItemStack() {
|
public ItemStack getItemStack() {
|
||||||
// TODO This doesn't work crossdim.
|
|
||||||
return new ItemStack(Item.BLOCK_TO_ITEM.get(world.getBlockState(pos).getBlock()), 1);
|
return new ItemStack(Item.BLOCK_TO_ITEM.get(world.getBlockState(pos).getBlock()), 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -120,18 +120,14 @@ public class NetworkTransmitterNetworkNode extends NetworkNode {
|
|||||||
|
|
||||||
if (canTransmit()) {
|
if (canTransmit()) {
|
||||||
if (!isSameDimension()) {
|
if (!isSameDimension()) {
|
||||||
return;
|
World dimensionWorld = world.getServer().getWorld(receiverDimension);
|
||||||
|
|
||||||
|
if (dimensionWorld != null) {
|
||||||
|
operator.apply(dimensionWorld, receiver, null);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
// TODO if (!isSameDimension()) {
|
|
||||||
// World dimensionWorld = DimensionManager.getWorld(world.getServer(), receiverDimension, true, true);
|
|
||||||
|
|
||||||
//if (dimensionWorld != null) {
|
|
||||||
// operator.apply(dimensionWorld, receiver, null);
|
|
||||||
// }
|
|
||||||
//} else {
|
|
||||||
operator.apply(world, receiver, null);
|
operator.apply(world, receiver, null);
|
||||||
//}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user