From 7983992371a28ae8ec6f2833725dc4859c8d0d80 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Sat, 19 Apr 2025 00:34:37 +0900 Subject: [PATCH] . --- exp_scenario/module/commands/waterfill.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/exp_scenario/module/commands/waterfill.lua b/exp_scenario/module/commands/waterfill.lua index 63df4cba..02a32ad8 100644 --- a/exp_scenario/module/commands/waterfill.lua +++ b/exp_scenario/module/commands/waterfill.lua @@ -90,10 +90,8 @@ Selection.on_selection(SelectionName, function(event) surface.set_tiles(tiles_to_make, true, "abort_on_collision", true, false, player, 0) local remaining_tiles = surface.count_tiles_filtered{ area = area, name = tile_to_apply } local t_diff = tile_count - remaining_tiles - game.print("T " .. tile_count .. " R " .. remaining_tiles) - --[[ - if item_count_cliff >= t_diff then + if item_count_cliff >= t_diff and t_diff > 0 then player.remove_item{ name = "cliff-explosives", count = t_diff } else if item_count_cliff > 0 then @@ -106,7 +104,6 @@ Selection.on_selection(SelectionName, function(event) player.remove_item{ name = "grenade", count = item_count_needed } end end - ]] if remaining_tiles > 0 then player.print({ "exp-commands_waterfill.part-complete", tile_count, remaining_tiles }, Commands.print_settings.default)