Update 'crops/pumpkin.lua'
This commit is contained in:
parent
07daa9ce05
commit
0d72ed5b4d
1 changed files with 3 additions and 2 deletions
|
@ -184,8 +184,9 @@ minetest.register_abm({
|
|||
return
|
||||
end
|
||||
|
||||
if minetest.registered_nodes[n.name].drawtype == "plantlike" or
|
||||
minetest.registered_nodes[n.name].groups.flora == 1 or
|
||||
if minetest.registered_nodes[n.name] and
|
||||
(minetest.registered_nodes[n.name].drawtype == "plantlike" or
|
||||
minetest.registered_nodes[n.name].groups.flora == 1) or
|
||||
n.name == "air" then
|
||||
minetest.set_node(t, {name = "crops:pumpkin", param2 = faces[r].m})
|
||||
|
||||
|
|
Loading…
Reference in a new issue