mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-12-01 02:53:01 +00:00
Allow corals placement on top of node only
This commit is contained in:
parent
cf1df56b79
commit
4dcbe75e84
1 changed files with 4 additions and 0 deletions
|
@ -24,6 +24,10 @@ local function coral_on_place(itemstack, placer, pointed_thing)
|
|||
placer, itemstack, pointed_thing) or itemstack
|
||||
end
|
||||
|
||||
if pos_under.y >= pos_above.y then
|
||||
return itemstack
|
||||
end
|
||||
|
||||
local g_block = minetest.get_item_group(node_under.name, "coral_block")
|
||||
local g_coral = minetest.get_item_group(itemstack:get_name(), "coral")
|
||||
local g_species_block = minetest.get_item_group(node_under.name, "coral_species")
|
||||
|
|
Loading…
Reference in a new issue