mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-24 11:53:46 +01:00
Add untested bonemeal mod compatibility shim
This commit is contained in:
parent
57678e31bc
commit
09bcf3d22b
@ -0,0 +1,12 @@
|
|||||||
|
bonemeal = {}
|
||||||
|
|
||||||
|
function bonemeal:on_use(pos, strength, node)
|
||||||
|
-- Fake itemstack for bone meal
|
||||||
|
local itemstack = ItemStack("mcl_bone_meal:bone_meal")
|
||||||
|
|
||||||
|
local pointed_thing = {
|
||||||
|
above = pos,
|
||||||
|
under = vector.offset(pos, 0, -1, 0)
|
||||||
|
}
|
||||||
|
mcl_bone_meal.use_bone_meal(itemstack, nil, pointed_thing)
|
||||||
|
end
|
Loading…
Reference in New Issue
Block a user