Disable movableBlockEntities support for sculk sensors

Closes #1473
This commit is contained in:
altrisi committed 2025-06-21 20:47:39 +02:00
1 parent 209596f6ee
commit 9db103aca3
1 file changed
+2 -1
@@ -56,7 +56,8 @@ public abstract class PistonBaseBlock_movableBEMixin extends DirectionalBlock
//Making PISTON_EXTENSION (BlockPistonMoving) pushable would not work as its createNewTileEntity()-method returns null
return block != Blocks.ENDER_CHEST && block != Blocks.ENCHANTING_TABLE &&
block != Blocks.END_GATEWAY && block != Blocks.END_PORTAL && block != Blocks.MOVING_PISTON &&
block != Blocks.SPAWNER;
block != Blocks.SPAWNER
&& block != Blocks.SCULK_SENSOR && block != Blocks.CALIBRATED_SCULK_SENSOR; // these have weird behaviour and crashes, #1473, also #1885
}
@Redirect(method = "isPushable", at = @At(value = "INVOKE", target = "Lnet/minecraft/world/level/block/state/BlockState;hasBlockEntity()Z"))