diff --git a/common/src/main/kotlin/quaedam/misc/causality/CABlock.kt b/common/src/main/kotlin/quaedam/misc/causality/CABlock.kt index 829a735..39298d6 100644 --- a/common/src/main/kotlin/quaedam/misc/causality/CABlock.kt +++ b/common/src/main/kotlin/quaedam/misc/causality/CABlock.kt @@ -4,6 +4,7 @@ import net.minecraft.core.BlockPos import net.minecraft.core.Direction import net.minecraft.world.item.context.BlockPlaceContext import net.minecraft.world.level.BlockGetter +import net.minecraft.world.level.Level import net.minecraft.world.level.LevelAccessor import net.minecraft.world.level.block.* import net.minecraft.world.level.block.state.BlockState @@ -87,4 +88,19 @@ object CABlock : HorizontalDirectionalBlock( super.getFluidState(state) } + @Suppress("OVERRIDE_DEPRECATION", "DEPRECATION") + override fun neighborChanged( + state: BlockState, + level: Level, + pos: BlockPos, + neighborBlock: Block, + neighborPos: BlockPos, + movedByPiston: Boolean + ) { + super.neighborChanged(state, level, pos, neighborBlock, neighborPos, movedByPiston) + if (level.getBlockState(pos.below()).isAir) { + level.destroyBlock(pos, true) + } + } + } \ No newline at end of file diff --git a/common/src/main/resources/assets/quaedam/textures/block/causality_anchor.png b/common/src/main/resources/assets/quaedam/textures/block/causality_anchor.png index 7d015da..e48ddfd 100644 Binary files a/common/src/main/resources/assets/quaedam/textures/block/causality_anchor.png and b/common/src/main/resources/assets/quaedam/textures/block/causality_anchor.png differ