Make offhand_placeable nodes placable with hand

This commit is contained in:
Elias Åström 2024-02-17 16:00:01 +01:00 committed by cora
parent 7cf84600e8
commit 7a5ce47094

View File

@ -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