0.8.15 hotfix, fixes #234
This commit is contained in:
@@ -23,7 +23,7 @@ import java.util.List;
|
||||
@Mod(modid = RefinedStorage.ID, version = RefinedStorage.VERSION)
|
||||
public final class RefinedStorage {
|
||||
public static final String ID = "refinedstorage";
|
||||
public static final String VERSION = "0.8.14";
|
||||
public static final String VERSION = "0.8.15";
|
||||
|
||||
@SidedProxy(clientSide = "refinedstorage.proxy.ClientProxy", serverSide = "refinedstorage.proxy.ServerProxy")
|
||||
public static CommonProxy PROXY;
|
||||
|
||||
@@ -68,5 +68,5 @@ public interface INetworkNode {
|
||||
/**
|
||||
* @return The world where this node is in
|
||||
*/
|
||||
World getWorld();
|
||||
World getNodeWorld();
|
||||
}
|
||||
|
||||
@@ -118,13 +118,13 @@ public class NetworkNodeGraph implements INetworkNodeGraph {
|
||||
|
||||
if (notify) {
|
||||
for (INetworkNode newNode : nodes) {
|
||||
if (!oldNodeHashes.contains(hashNode(newNode.getWorld(), newNode))) {
|
||||
if (!oldNodeHashes.contains(hashNode(newNode.getNodeWorld(), newNode))) {
|
||||
newNode.onConnected(controller);
|
||||
}
|
||||
}
|
||||
|
||||
for (INetworkNode oldNode : oldNodes) {
|
||||
if (!nodeHashes.contains(hashNode(oldNode.getWorld(), oldNode))) {
|
||||
if (!nodeHashes.contains(hashNode(oldNode.getNodeWorld(), oldNode))) {
|
||||
oldNode.onDisconnected(controller);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ import io.netty.buffer.ByteBuf;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.world.World;
|
||||
import refinedstorage.api.network.INetworkMaster;
|
||||
import refinedstorage.api.network.INetworkNode;
|
||||
import refinedstorage.apiimpl.network.NetworkUtils;
|
||||
@@ -95,6 +96,11 @@ public abstract class TileNode extends TileBase implements INetworkNode, ISynchr
|
||||
return network;
|
||||
}
|
||||
|
||||
@Override
|
||||
public World getNodeWorld() {
|
||||
return worldObj;
|
||||
}
|
||||
|
||||
@Override
|
||||
public BlockPos getPosition() {
|
||||
return pos;
|
||||
|
||||
Reference in New Issue
Block a user