mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-16 17:55:10 +00:00
Fix pumpkin seed placement issues
This commit is contained in:
parent
5ace10882e
commit
6b258b416d
1 changed files with 1 additions and 7 deletions
|
@ -4,13 +4,7 @@ minetest.register_craftitem("mcl_farming:pumpkin_seeds", {
|
||||||
inventory_image = "farming_pumpkin_seed.png",
|
inventory_image = "farming_pumpkin_seed.png",
|
||||||
groups = { craftitem=1 },
|
groups = { craftitem=1 },
|
||||||
on_place = function(itemstack, placer, pointed_thing)
|
on_place = function(itemstack, placer, pointed_thing)
|
||||||
local above = minetest.get_node(pointed_thing.above)
|
return mcl_farming:place_seed(itemstack, placer, pointed_thing, "mcl_farming:pumpkin_1")
|
||||||
if above.name == "air" then
|
|
||||||
above.name = "mcl_farming:pumpkin_1"
|
|
||||||
minetest.set_node(pointed_thing.above, above)
|
|
||||||
itemstack:take_item(1)
|
|
||||||
return itemstack
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue