Skip to content

Commit

Permalink
getNodeDrawable now uses getEntityDrawable rather than getDrawable
Browse files Browse the repository at this point in the history
Oversight after nodeVisibility was added, causes infinite recursion in some cases
  • Loading branch information
Cruor committed Jun 15, 2021
1 parent a68c792 commit 6fa7872
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/entities.lua
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ function entities.getNodeDrawable(name, handler, room, entity, node, nodeIndex,
entityCopy.x = node.x
entityCopy.y = node.y

return entities.getDrawable(name, handler, room, entityCopy, viewport)
return entities.getEntityDrawable(name, handler, room, entityCopy, viewport)
end
end

Expand Down

0 comments on commit 6fa7872

Please sign in to comment.