mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 11:35:22 +09:00
Merge pull request #262 from PHIDIAS0303/patch-3
prompt for steel chest placement in waterfill
This commit is contained in:
@@ -38,6 +38,12 @@ 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
|
||||||
|
player.print('No steel chest found')
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
local tiles_to_make = {}
|
local tiles_to_make = {}
|
||||||
local inv = player.get_main_inventory()
|
local inv = player.get_main_inventory()
|
||||||
local clf_exp = inv.get_item_count('cliff-explosives')
|
local clf_exp = inv.get_item_count('cliff-explosives')
|
||||||
|
|||||||
Reference in New Issue
Block a user