add missing on_place

add missing on_place function instead of the on_construct that caused crash.
This commit is contained in:
tenplus1 2020-12-09 10:37:16 +00:00 committed by GitHub
parent 049c052eb5
commit 0abb97c541
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -140,11 +140,9 @@ local algae_thick_def = {
fixed = {-7 / 16, -0.5, -7 / 16, 7 / 16, -15 / 32, 7 / 16}
},
on_construct = function(itemstack, placer, pointed_thing)
on_place = function(itemstack, placer, pointed_thing)
if placer == nil then
minetest.log("decorations have no placer")
else
minetest.log(placer)
end
local pos = pointed_thing.above
local node = minetest.get_node(pointed_thing.under)