1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2024-12-12 10:04:40 +02:00

Merge pull request #932 from linaori/fix/on_player_built_tile

Ensure the new tile is set, not the item
This commit is contained in:
Lynn 2019-05-31 22:53:37 +02:00 committed by GitHub
commit e72fc1c4a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -376,7 +376,7 @@ function DiggyCaveCollapse.register(cfg)
Event.add(
defines.events.on_player_built_tile,
function(event)
on_built_tile(game.surfaces[event.surface_index], event.item, event.tiles)
on_built_tile(game.surfaces[event.surface_index], event.tile, event.tiles)
end
)
Event.add(defines.events.on_robot_mined_tile, on_robot_mined_tile)