1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-11-23 16:44:50 +00:00

Merge branch 'mc-1.13.x' into mc-1.14-fabric

This commit is contained in:
SquidDev
2019-04-11 08:57:04 +01:00
38 changed files with 437 additions and 271 deletions

View File

@@ -15,17 +15,10 @@ public final class RedstoneUtil
{
public static void propagateRedstoneOutput( World world, BlockPos pos, Direction side )
{
// Propagate ordinary output
// Propagate ordinary output. See BlockRedstoneDiode.notifyNeighbors
BlockState block = world.getBlockState( pos );
BlockPos neighbourPos = pos.offset( side );
BlockState neighbour = world.getBlockState( neighbourPos );
if( !neighbour.isAir() )
{
world.updateNeighbor( neighbourPos, block.getBlock(), pos );
if( neighbour.isSimpleFullBlock( world, neighbourPos ) )
{
world.updateNeighborsExcept( neighbourPos, block.getBlock(), side.getOpposite() );
}
}
world.updateNeighbor( neighbourPos, block.getBlock(), pos );
world.updateNeighborsExcept( neighbourPos, block.getBlock(), side.getOpposite() );
}
}