add nil check for self.def_under

This commit is contained in:
tenplus1 2021-06-08 19:36:29 +01:00
parent 02b1cdd741
commit 7bc7a704da

View File

@ -338,7 +338,7 @@ core.register_entity(":__builtin:item", {
and core.registered_nodes[self.node_under.name]
-- part of old ground check
if self.def_under.walkable then
if self.def_under and self.def_under.walkable then
self.falling_state = false
end