From 733c70823af73583be24e976c24125fbdf67b6c0 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Wed, 22 Jan 2025 18:31:07 +0900 Subject: [PATCH] . --- exp_scenario/module/commands/waterfill.lua | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/exp_scenario/module/commands/waterfill.lua b/exp_scenario/module/commands/waterfill.lua index e86e4445..7070586c 100644 --- a/exp_scenario/module/commands/waterfill.lua +++ b/exp_scenario/module/commands/waterfill.lua @@ -47,13 +47,7 @@ Selection.on_selection(SelectionName, function(event) local item_count_cliff_ne = false local item_count_craft_ne = false - if item_count_cliff < area_size then - item_count_cliff_ne = true - elseif item_count_craft < area_size then - item_count_craft_ne = true - end - - if item_count_cliff_ne and item_count_craft_ne then + if item_count_cliff < area_size and item_count_craft < area_size then player.print({ "exp-commands_waterfill.too-few-explosives", area_size, item_count_cliff }, Commands.print_settings.error) return end