1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-10-26 11:27:38 +00:00

Update all inputs if the block is not a neighbour

Fixes #172, and acts as a workaround for MrTJP/ProjectRed#1472.
This commit is contained in:
SquidDev
2019-04-08 14:52:24 +01:00
parent 4205f18f0c
commit f3ce44042f

View File

@@ -309,8 +309,8 @@ public abstract class TileComputerBase extends TileGeneric implements IComputerT
if( getWorld() == null || getWorld().isRemote ) return;
ServerComputer computer = getServerComputer();
if( computer != null )
{
if( computer == null ) return;
BlockPos pos = computer.getPosition();
for( EnumFacing dir : EnumFacing.VALUES )
{
@@ -318,10 +318,12 @@ public abstract class TileComputerBase extends TileGeneric implements IComputerT
if( offset.equals( neighbour ) )
{
updateSideInput( computer, dir, offset );
break;
}
return;
}
}
// If the position is not any adjacent one, update all inputs.
updateInput();
}
public void updateOutput()