mirror of
https://bitbucket.org/minetest_gamers/x_enchanting.git
synced 2025-07-11 12:00:22 +02:00
Fix distance measure for scroll
This commit is contained in:
@ -535,6 +535,7 @@ minetest.register_entity('x_enchanting:table_scroll', {
|
|||||||
local distance = vector.distance(pos, obj:get_pos())
|
local distance = vector.distance(pos, obj:get_pos())
|
||||||
|
|
||||||
if distance < shortest_distance then
|
if distance < shortest_distance then
|
||||||
|
shortest_distance = distance
|
||||||
self._player = obj
|
self._player = obj
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user