mirror of
https://github.com/Dadido3/noita-mapcap.git
synced 2024-12-22 02:17:33 +00:00
Fix and update LoadToEntity API wrapper
This commit is contained in:
parent
926aa5bca8
commit
9f4aa9b038
@ -145,11 +145,12 @@ function EntityAPI.LoadCameraBound(filename, posX, posY)
|
||||
return EntityLoadCameraBound(filename, posX, posY)
|
||||
end
|
||||
|
||||
---
|
||||
---Creates a new entity from the given XML file, and attaches it to entity.
|
||||
---This will not load tags and other stuff, it seems.
|
||||
---@param filename string
|
||||
---@param entity NoitaEntity
|
||||
function EntityAPI.LoadToEntity(filename, entity)
|
||||
return EntityLoadToEntity(filename, entity)
|
||||
return EntityLoadToEntity(filename, entity.ID)
|
||||
end
|
||||
|
||||
---
|
||||
|
Loading…
Reference in New Issue
Block a user