Skip to content

Commit

Permalink
Solving white mushroom spore problem. Closes #1799 (#1800)
Browse files Browse the repository at this point in the history
  • Loading branch information
lord-sakamoto authored Nov 23, 2024
1 parent 8ff1c95 commit 16e4d15
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mods/lord/Blocks/lottfarming/white.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ minetest.register_craftitem("lottfarming:white_mushroom_spore", {
description = S("White Mushroom Spores"),
inventory_image = "lottfarming_white_mushroom_spore.png",
on_place = function(itemstack, placer, pointed_thing)
local ptu = pointed_thing.under
local nu = minetest.get_node(ptu)
if minetest.registered_nodes[nu.name].on_rightclick then
return minetest.registered_nodes[nu.name].on_rightclick(ptu, nu, placer, itemstack)
end
return place_spore(itemstack, placer, pointed_thing, "lottfarming:white_mushroom_1", 9)
end,
})
Expand Down

0 comments on commit 16e4d15

Please sign in to comment.