0.8.15 hotfix, fixes #234

This commit is contained in:
Raoul Van den Berge
2016-08-01 18:15:58 +02:00
parent 4b421734d3
commit 2215f279bd
7 changed files with 16 additions and 6 deletions

View File

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

View File

@@ -68,5 +68,5 @@ public interface INetworkNode {
/**
* @return The world where this node is in
*/
World getWorld();
World getNodeWorld();
}

View File

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

View File

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