mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-01-08 00:39:30 +02:00
Fixed issue where on_player_built_tile would return tile name of "stone-path" whereas item to refund should be "stone-brick"
This commit is contained in:
parent
29b3a89b33
commit
f924f6a584
@ -192,7 +192,8 @@ local function prevent_isolation_tile(event, player)
|
||||
if not in_town(force, position) and isolated(surface, force, position) then
|
||||
error = true
|
||||
surface.set_tiles({ { name = old_tile.name, position = position } }, true)
|
||||
if tile.name ~= "tile-ghost" then
|
||||
if tile_name ~= "tile-ghost" then
|
||||
if tile_name == "stone-path" then tile_name = "stone-brick" end
|
||||
refund_item(event, tile_name)
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user