mirror of
https://bitbucket.org/minetest_gamers/x_enchanting.git
synced 2025-04-21 17:50:21 +02:00
Fix distance measure for scroll
This commit is contained in:
parent
4303c5f8bf
commit
92cd1dea01
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user