.
This commit is contained in:
@@ -38,7 +38,7 @@ Selection.on_selection(SelectionConvertArea, function(event)
|
|||||||
local player = game.get_player(event.player_index)
|
local player = game.get_player(event.player_index)
|
||||||
|
|
||||||
local entities = player.surface.find_entities_filtered{area=area, name='steel-chest'}
|
local entities = player.surface.find_entities_filtered{area=area, name='steel-chest'}
|
||||||
|
|
||||||
if #entities == 0 then
|
if #entities == 0 then
|
||||||
player.print('No steel chest found')
|
player.print('No steel chest found')
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user