Update 'crops/pumpkin.lua'

This commit is contained in:
Milan2018 2021-04-28 18:26:40 +02:00
parent 07daa9ce05
commit 0d72ed5b4d
1 changed files with 3 additions and 2 deletions

View File

@ -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})