Skip to content

Commit

Permalink
fix: warning on transformItem (opentibiabr#3302)
Browse files Browse the repository at this point in the history
  • Loading branch information
murilo09 authored and vllworldbuilding committed Jan 31, 2025
1 parent cfd05b1 commit ca3be25
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion data/libs/functions/position.lua
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,9 @@ function Position:transformItem(itemId, itemTransform, effect)
local thing = Tile(self):getItemById(itemId)
if thing then
thing:transform(itemTransform)
Position(self):sendMagicEffect(effect)
if effect then
Position(self):sendMagicEffect(effect)
end
end
end

Expand Down

0 comments on commit ca3be25

Please sign in to comment.