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

@@ -1,5 +1,9 @@
# Refined Storage Changelog # Refined Storage Changelog
### 0.8.15
**Bugfixes**
- Fixed server startup crash
### 0.8.14 ### 0.8.14
**Features** **Features**
- Added Interdimensional Upgrade so the Network Transmitter can work over different dimensions - Added Interdimensional Upgrade so the Network Transmitter can work over different dimensions

View File

@@ -12,7 +12,7 @@ buildscript {
} }
apply plugin: 'net.minecraftforge.gradle.forge' apply plugin: 'net.minecraftforge.gradle.forge'
version = "0.8.14" version = "0.8.15"
group = "refinedstorage" group = "refinedstorage"
archivesBaseName = "refinedstorage" archivesBaseName = "refinedstorage"

View File

@@ -23,7 +23,7 @@ import java.util.List;
@Mod(modid = RefinedStorage.ID, version = RefinedStorage.VERSION) @Mod(modid = RefinedStorage.ID, version = RefinedStorage.VERSION)
public final class RefinedStorage { public final class RefinedStorage {
public static final String ID = "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") @SidedProxy(clientSide = "refinedstorage.proxy.ClientProxy", serverSide = "refinedstorage.proxy.ServerProxy")
public static CommonProxy PROXY; public static CommonProxy PROXY;

View File

@@ -68,5 +68,5 @@ public interface INetworkNode {
/** /**
* @return The world where this node is in * @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) { if (notify) {
for (INetworkNode newNode : nodes) { for (INetworkNode newNode : nodes) {
if (!oldNodeHashes.contains(hashNode(newNode.getWorld(), newNode))) { if (!oldNodeHashes.contains(hashNode(newNode.getNodeWorld(), newNode))) {
newNode.onConnected(controller); newNode.onConnected(controller);
} }
} }
for (INetworkNode oldNode : oldNodes) { for (INetworkNode oldNode : oldNodes) {
if (!nodeHashes.contains(hashNode(oldNode.getWorld(), oldNode))) { if (!nodeHashes.contains(hashNode(oldNode.getNodeWorld(), oldNode))) {
oldNode.onDisconnected(controller); oldNode.onDisconnected(controller);
} }
} }

View File

@@ -4,6 +4,7 @@ import io.netty.buffer.ByteBuf;
import net.minecraft.block.Block; import net.minecraft.block.Block;
import net.minecraft.nbt.NBTTagCompound; import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import refinedstorage.api.network.INetworkMaster; import refinedstorage.api.network.INetworkMaster;
import refinedstorage.api.network.INetworkNode; import refinedstorage.api.network.INetworkNode;
import refinedstorage.apiimpl.network.NetworkUtils; import refinedstorage.apiimpl.network.NetworkUtils;
@@ -95,6 +96,11 @@ public abstract class TileNode extends TileBase implements INetworkNode, ISynchr
return network; return network;
} }
@Override
public World getNodeWorld() {
return worldObj;
}
@Override @Override
public BlockPos getPosition() { public BlockPos getPosition() {
return pos; return pos;

View File

@@ -3,7 +3,7 @@
"modid": "refinedstorage", "modid": "refinedstorage",
"name": "Refined Storage", "name": "Refined Storage",
"description": "A Minecraft mod all about storage.", "description": "A Minecraft mod all about storage.",
"version": "0.8.14", "version": "0.8.15",
"mcversion": "1.10.2", "mcversion": "1.10.2",
"url": "", "url": "",
"updateUrl": "", "updateUrl": "",