Fixed network nodes not respecting redstone mode, fixes #980
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
# Refined Storage Changelog
|
||||
|
||||
### 1.4.1
|
||||
- Fixed Processing Pattern Encoder and Reader recipes not supporting oredict workbench and chest (VT-14)
|
||||
- Fixed network nodes not saving correctly (raoulvdberge)
|
||||
- Fixed network nodes not respecting redstone mode (raoulvdberge)
|
||||
|
||||
### 1.4
|
||||
- Added Security Manager (raoulvdberge)
|
||||
- Added Security Card (raoulvdberge)
|
||||
|
@@ -84,7 +84,7 @@ public class NetworkNodeConstructor extends NetworkNode implements IComparable,
|
||||
public void update() {
|
||||
super.update();
|
||||
|
||||
if (network != null && ticks % upgrades.getSpeed(BASE_SPEED, 4) == 0) {
|
||||
if (network != null && canUpdate() && ticks % upgrades.getSpeed(BASE_SPEED, 4) == 0) {
|
||||
if (type == IType.ITEMS) {
|
||||
if (block != null) {
|
||||
if (drop && item != null) {
|
||||
|
@@ -72,7 +72,7 @@ public class NetworkNodeDestructor extends NetworkNode implements IComparable, I
|
||||
public void update() {
|
||||
super.update();
|
||||
|
||||
if (network != null && ticks % upgrades.getSpeed(BASE_SPEED, 4) == 0) {
|
||||
if (network != null && canUpdate() && ticks % upgrades.getSpeed(BASE_SPEED, 4) == 0) {
|
||||
BlockPos front = holder.pos().offset(holder.getDirection());
|
||||
|
||||
if (pickupItem && type == IType.ITEMS) {
|
||||
|
@@ -66,7 +66,7 @@ public class NetworkNodeDetector extends NetworkNode implements IComparable, ITy
|
||||
RSUtils.updateBlock(holder.world(), holder.pos());
|
||||
}
|
||||
|
||||
if (network != null && ticks % SPEED == 0) {
|
||||
if (network != null && canUpdate() && ticks % SPEED == 0) {
|
||||
if (type == IType.ITEMS) {
|
||||
ItemStack slot = itemFilters.getStackInSlot(0);
|
||||
|
||||
|
@@ -57,7 +57,7 @@ public class NetworkNodeExporter extends NetworkNode implements IComparable, ITy
|
||||
public void update() {
|
||||
super.update();
|
||||
|
||||
if (network != null && ticks % upgrades.getSpeed() == 0) {
|
||||
if (network != null && canUpdate() && ticks % upgrades.getSpeed() == 0) {
|
||||
if (type == IType.ITEMS) {
|
||||
IItemHandler handler = RSUtils.getItemHandler(getFacingTile(), holder.getDirection().getOpposite());
|
||||
|
||||
|
@@ -86,7 +86,7 @@ public class NetworkNodeFluidInterface extends NetworkNode implements IComparabl
|
||||
}
|
||||
}
|
||||
|
||||
if (network != null && ticks % upgrades.getSpeed() == 0) {
|
||||
if (network != null && canUpdate() && ticks % upgrades.getSpeed() == 0) {
|
||||
FluidStack drained = tankIn.drainInternal(Fluid.BUCKET_VOLUME * upgrades.getItemInteractCount(), true);
|
||||
|
||||
// Drain in tank
|
||||
|
@@ -49,7 +49,7 @@ public class NetworkNodeImporter extends NetworkNode implements IComparable, IFi
|
||||
public void update() {
|
||||
super.update();
|
||||
|
||||
if (network == null) {
|
||||
if (network == null || !canUpdate()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@@ -45,7 +45,7 @@ public class NetworkNodeInterface extends NetworkNode implements IComparable {
|
||||
public void update() {
|
||||
super.update();
|
||||
|
||||
if (network == null) {
|
||||
if (network == null || !canUpdate()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@@ -70,7 +70,7 @@ public class NetworkNodeSolderer extends NetworkNode {
|
||||
RSUtils.updateBlock(holder.world(), holder.pos());
|
||||
}
|
||||
|
||||
if (network == null) {
|
||||
if (network == null || !canUpdate()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@@ -118,7 +118,7 @@ public class NetworkNodeDiskManipulator extends NetworkNode implements IComparab
|
||||
public void update() {
|
||||
super.update();
|
||||
|
||||
if (network == null || ticks % upgrades.getSpeed() != 0) {
|
||||
if (network == null || !canUpdate() || ticks % upgrades.getSpeed() != 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user