Fix distance measure for scroll

This commit is contained in:
Juraj Vajda 2022-11-16 16:26:46 -05:00
parent 4303c5f8bf
commit 92cd1dea01

View File

@ -535,6 +535,7 @@ minetest.register_entity('x_enchanting:table_scroll', {
local distance = vector.distance(pos, obj:get_pos())
if distance < shortest_distance then
shortest_distance = distance
self._player = obj
end
end