diff --git a/changelog.txt b/changelog.txt index cd6965b..21f9d9d 100644 --- a/changelog.txt +++ b/changelog.txt @@ -6,7 +6,8 @@ Date: 2023-07-16 Bugfixes: - Fix bug in motion detection, which was introduced in 0.5.7. Moving did not instantly recognize ghosts in building area - Fix bug, that deconstructing entities with complex items f.e. like armor with grid in it, would move it without interior - - Fix bug that upgrading direction of ug belts actually works + - Fix bug, that upgrading direction of ug belts actually works + - Fix bug, that entities couldn't be revived, when items are on the ground --------------------------------------------------------------------------------------------------- Version: 0.5.7 Date: 2023-06-28 diff --git a/control.lua b/control.lua index a70bb2f..921c21d 100644 --- a/control.lua +++ b/control.lua @@ -322,16 +322,6 @@ local function try_revive_with_stack(ghost, player, stack_to_place) return UNSUCCESS_SKIP end - if ghost.name == "entity-ghost" and not player.surface.can_place_entity { - name = ghost.ghost_name, - position = ghost.position, - direction = ghost.direction, - force = ghost.force - } - then - return UNSUCCESS_SKIP - end - local items, entity, request_proxy = ghost.revive{ return_item_request_proxy = true, raise_revive = true,