From d626ba91a906bc7d1d6abaa2d70911062c314a85 Mon Sep 17 00:00:00 2001 From: Polaris <111881432+WarmurCle@users.noreply.github.com> Date: Sat, 11 Apr 2026 16:43:42 +0800 Subject: [PATCH] Update SpaceWand.Operations.cs --- Content/Items/SpaceWand.Operations.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Content/Items/SpaceWand.Operations.cs b/Content/Items/SpaceWand.Operations.cs index e1ecd790..7cb0e664 100644 --- a/Content/Items/SpaceWand.Operations.cs +++ b/Content/Items/SpaceWand.Operations.cs @@ -75,6 +75,8 @@ public static void OperateTile(Player player, int x, int y, HashSet tiles // 物品放置的瓷砖就是位置对应的瓷砖则无需替换 if (!ValidTileForReplacement(item, x, y)) { + //取消物块的制动 + originalTile.IsActuated = false; // 至少还可以设置个斜坡 SetSlopeFor(placeType, blockType, x, y, tilesHashSet); return; @@ -95,6 +97,8 @@ public static void OperateTile(Player player, int x, int y, HashSet tiles // PickItemInInventory(player, GetConditions(placeType), false, out int index); HandleItemConsumption(player, indexOfItemBeingConsumed, itemsConsumed, usingTileWand); SetSlopeFor(placeType, blockType, x, y, tilesHashSet); + //取消物块的制动 + originalTile.IsActuated = false; } else { @@ -107,6 +111,8 @@ public static void OperateTile(Player player, int x, int y, HashSet tiles // PickItemInInventory(player, GetConditions(placeType), false, out int index); HandleItemConsumption(player, indexOfItemBeingConsumed, itemsConsumed, usingTileWand); SetSlopeFor(placeType, blockType, x, y, tilesHashSet); + //取消物块的制动 + originalTile.IsActuated = false; } } } @@ -151,4 +157,4 @@ private static void SetSlopeFor(PlaceType placeType, BlockType blockType, int x, if (placeType is PlaceType.Soild && blockType is BlockType.Solid && !positions.Contains(new Point(x, y + 1))) WorldGen.SlopeTile(x, y + 1); } -} \ No newline at end of file +}