Skip to content

Commit

Permalink
fix vendor duplication bug
Browse files Browse the repository at this point in the history
tables are passed by reference, not by value, so the change to the position needs to be undone before returning

thanks @SwissalpS for reporting :)
  • Loading branch information
OgelGames committed Dec 31, 2020
1 parent c86cb67 commit 0b16a29
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions display_item.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ function fancy_vend.update_item(pos, node)
minetest.get_node(pos).name.." at "..minetest.pos_to_string(pos)..
" is not permitted, aborting"
)
pos.y = pos.y - 1
return
end
pos.y = pos.y - 1
Expand Down

1 comment on commit 0b16a29

@SwissalpS
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

Please sign in to comment.