Skip to content

Commit

Permalink
v1.2.2
Browse files Browse the repository at this point in the history
- fixed setOwner not modified ref issue
  • Loading branch information
dev-chenxing committed Jun 19, 2023
1 parent a47aa50 commit 17ecdb7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
TODO.md
\blend
\pdn
\extras
*.7z
7 changes: 6 additions & 1 deletion MWSE/mods/JosephMcKean/MyManor/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ end

---@param cell tes3cell
function MyManor.transferOwnership(cell)
for ref in cell:iterateReferences() do if tes3.getOwner({ reference = ref }) then tes3.setOwner({ reference = ref, remove = true }) end end
for ref in cell:iterateReferences() do
if tes3.getOwner({ reference = ref }) then
tes3.setOwner({ reference = ref, remove = true })
ref.modified = true
end
end
tes3.player.data.MyManor.ownershipTransferred = true
end

Expand Down

0 comments on commit 17ecdb7

Please sign in to comment.