Fixed duplication glitch with storages. Fixes #1881
This commit is contained in:
@@ -43,6 +43,7 @@ NOTE: Worlds that used Refined Storage 1.5.x are fully compatible with Refined S
|
|||||||
- Fixed using Interfaces for minimum stock levels failing when requester is also an Interface (raoulvdberge)
|
- Fixed using Interfaces for minimum stock levels failing when requester is also an Interface (raoulvdberge)
|
||||||
- Fixed ItemZoom incompatibility in Grid and crafting preview window (raoulvdberge)
|
- Fixed ItemZoom incompatibility in Grid and crafting preview window (raoulvdberge)
|
||||||
- Fixed shift clicking upgrades into Interface making upgrades go to import slots (raoulvdberge)
|
- Fixed shift clicking upgrades into Interface making upgrades go to import slots (raoulvdberge)
|
||||||
|
- Fixed duplication glitch with storages (raoulvdberge)
|
||||||
- Prevent accidental Grid scrollbar click after clicking JEI recipe transfer button (raoulvdberge)
|
- Prevent accidental Grid scrollbar click after clicking JEI recipe transfer button (raoulvdberge)
|
||||||
- Added a missing config option for Crafter Manager energy usage (raoulvdberge)
|
- Added a missing config option for Crafter Manager energy usage (raoulvdberge)
|
||||||
- Added support for Disk Drive / Storage Block storage and capacity to OC integration (zangai)
|
- Added support for Disk Drive / Storage Block storage and capacity to OC integration (zangai)
|
||||||
|
@@ -35,14 +35,6 @@ public class NetworkNodeGraph implements INetworkNodeGraph {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void rebuild() {
|
public void rebuild() {
|
||||||
if (!controller.canRun()) {
|
|
||||||
if (!nodes.isEmpty()) {
|
|
||||||
disconnectAll();
|
|
||||||
}
|
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
rebuilding = true;
|
rebuilding = true;
|
||||||
|
|
||||||
Operator operator = new Operator();
|
Operator operator = new Operator();
|
||||||
|
@@ -99,7 +99,13 @@ public abstract class NetworkNode implements INetworkNode, INetworkNodeVisitor {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean canUpdate() {
|
public boolean canUpdate() {
|
||||||
return redstoneMode.isEnabled(world, pos);
|
if (redstoneMode.isEnabled(world, pos)) {
|
||||||
|
if (network != null) {
|
||||||
|
return network.canRun();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected int getUpdateThrottleInactiveToActive() {
|
protected int getUpdateThrottleInactiveToActive() {
|
||||||
|
@@ -86,7 +86,7 @@ public class TileDiskDrive extends TileNode<NetworkNodeDiskDrive> {
|
|||||||
public NBTTagCompound writeUpdate(NBTTagCompound tag) {
|
public NBTTagCompound writeUpdate(NBTTagCompound tag) {
|
||||||
super.writeUpdate(tag);
|
super.writeUpdate(tag);
|
||||||
|
|
||||||
writeDiskState(tag, 8, getNode().getNetwork() != null, getNode().getItemDisks(), getNode().getFluidDisks());
|
writeDiskState(tag, 8, getNode().getNetwork() != null && getNode().canUpdate(), getNode().getItemDisks(), getNode().getFluidDisks());
|
||||||
|
|
||||||
return tag;
|
return tag;
|
||||||
}
|
}
|
||||||
|
@@ -40,7 +40,7 @@ public class TileDiskManipulator extends TileNode<NetworkNodeDiskManipulator> {
|
|||||||
public NBTTagCompound writeUpdate(NBTTagCompound tag) {
|
public NBTTagCompound writeUpdate(NBTTagCompound tag) {
|
||||||
super.writeUpdate(tag);
|
super.writeUpdate(tag);
|
||||||
|
|
||||||
TileDiskDrive.writeDiskState(tag, 6, getNode().getNetwork() != null, getNode().getItemDisks(), getNode().getFluidDisks());
|
TileDiskDrive.writeDiskState(tag, 6, getNode().getNetwork() != null && getNode().canUpdate(), getNode().getItemDisks(), getNode().getFluidDisks());
|
||||||
|
|
||||||
return tag;
|
return tag;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user