mirror of
https://bitbucket.org/minetest_gamers/x_enchanting.git
synced 2025-08-03 22:50:20 +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())
|
||||
|
||||
if distance < shortest_distance then
|
||||
shortest_distance = distance
|
||||
self._player = obj
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user