Allow corals placement on top of node only
This commit is contained in:
parent
cf1df56b79
commit
4dcbe75e84
|
@ -24,6 +24,10 @@ local function coral_on_place(itemstack, placer, pointed_thing)
|
||||||
placer, itemstack, pointed_thing) or itemstack
|
placer, itemstack, pointed_thing) or itemstack
|
||||||
end
|
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_block = minetest.get_item_group(node_under.name, "coral_block")
|
||||||
local g_coral = minetest.get_item_group(itemstack:get_name(), "coral")
|
local g_coral = minetest.get_item_group(itemstack:get_name(), "coral")
|
||||||
local g_species_block = minetest.get_item_group(node_under.name, "coral_species")
|
local g_species_block = minetest.get_item_group(node_under.name, "coral_species")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user