Make offhand_placeable nodes placable with hand
This commit is contained in:
parent
7cf84600e8
commit
7a5ce47094
@ -38,6 +38,12 @@ function mcl_offhand.place(placer, pointed_thing)
|
||||
return false
|
||||
end
|
||||
|
||||
minetest.override_item("", {
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
mcl_offhand.place(placer, pointed_thing)
|
||||
end
|
||||
})
|
||||
|
||||
local function offhand_get_wear(player)
|
||||
return mcl_offhand.get_offhand(player):get_wear()
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user