mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-23 08:29:34 +01:00
Fix a purely theoretical coral crash
This commit is contained in:
parent
b92aec71af
commit
e8614d7b27
1 changed files with 1 additions and 1 deletions
|
@ -165,7 +165,7 @@ local function coral_on_place(itemstack, placer, pointed_thing)
|
|||
end
|
||||
|
||||
node_under.name = itemstack:get_name()
|
||||
node_under.param2 = minetest.registered_items[itemstack:get_name()].place_param2
|
||||
node_under.param2 = minetest.registered_items[itemstack:get_name()].place_param2 or 1
|
||||
if node_under.param2 < 8 and math.random(1,2) == 1 then
|
||||
-- Random horizontal displacement
|
||||
node_under.param2 = node_under.param2 + 8
|
||||
|
|
Loading…
Reference in a new issue