diff --git a/modules/commands/waterfill.lua b/modules/commands/waterfill.lua index 319b2274..26214380 100644 --- a/modules/commands/waterfill.lua +++ b/modules/commands/waterfill.lua @@ -38,7 +38,7 @@ Selection.on_selection(SelectionConvertArea, function(event) local player = game.get_player(event.player_index) local entities = player.surface.find_entities_filtered{area=area, name='steel-chest'} - + if #entities == 0 then player.print('No steel chest found') return