Skip to content

Commit

Permalink
Entities can be revived when items on the ground
Browse files Browse the repository at this point in the history
  • Loading branch information
jodokus31 committed Jul 16, 2023
1 parent 458ddc3 commit e624beb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
3 changes: 2 additions & 1 deletion changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 0 additions & 10 deletions control.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e624beb

Please sign in to comment.