mirror of
https://github.com/ExeVirus/algae
synced 2025-07-31 18:45:48 +02:00
add missing on_place
add missing on_place function instead of the on_construct that caused crash.
This commit is contained in:
parent
049c052eb5
commit
0abb97c541
4
init.lua
4
init.lua
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user