Skip to content

Commit

Permalink
Merge pull request #14 from jodokus31/master
Browse files Browse the repository at this point in the history
Entities can be revived when items on the ground
  • Loading branch information
jodokus31 authored Jul 16, 2023
2 parents c339a46 + e624beb commit e50febc
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 e50febc

Please sign in to comment.