forked from VoxeLibre/VoxeLibre
Fix hand range not being applied if wielding item
This commit is contained in:
parent
740e87cd81
commit
29c12439c4
|
@ -1 +1,2 @@
|
||||||
|
mcl_tools
|
||||||
mcl_skins?
|
mcl_skins?
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
local has_mcl_skins = minetest.get_modpath("mcl_skins") ~= nil
|
local has_mcl_skins = minetest.get_modpath("mcl_skins") ~= nil
|
||||||
|
|
||||||
|
local def = minetest.registered_items[""]
|
||||||
|
|
||||||
-- mcl_skins is enabled
|
-- mcl_skins is enabled
|
||||||
if has_mcl_skins == true then
|
if has_mcl_skins == true then
|
||||||
--generate a node for every skin
|
--generate a node for every skin
|
||||||
|
@ -14,6 +16,7 @@ if has_mcl_skins == true then
|
||||||
drawtype = "mesh",
|
drawtype = "mesh",
|
||||||
mesh = "mcl_meshhand.b3d",
|
mesh = "mcl_meshhand.b3d",
|
||||||
node_placement_prediction = "",
|
node_placement_prediction = "",
|
||||||
|
range = def.range,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
--change the player's hand to their skin
|
--change the player's hand to their skin
|
||||||
|
@ -34,6 +37,7 @@ else
|
||||||
drawtype = "mesh",
|
drawtype = "mesh",
|
||||||
mesh = "mcl_meshhand.b3d",
|
mesh = "mcl_meshhand.b3d",
|
||||||
node_placement_prediction = "",
|
node_placement_prediction = "",
|
||||||
|
range = def.range,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_on_joinplayer(function(player)
|
minetest.register_on_joinplayer(function(player)
|
||||||
|
|
Loading…
Reference in New Issue