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:
@@ -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() );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user