multicraft2 compability

master
zmv7 2022-02-23 22:13:19 +05:00 committed by GitHub
parent 67613b6151
commit dfaebe4ad1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
local HUD = nil
minetest.register_on_punchnode(function(pos, node)
if core.localplayer:get_control().aux1 and tostring(core.localplayer:get_velocity()) == '(0, 0, 0)' then
if core.localplayer:get_control().aux1 and core.pos_to_string(core.localplayer:get_velocity()) == '(0,0,0)' then
if not HUD then
HUD = core.localplayer:hud_add({
hud_elem_type = "waypoint",