fix non existent variables

This commit is contained in:
Alexsandro Percy 2024-03-10 11:24:40 -03:00
parent 97abe243d3
commit c06bda3fcc
3 changed files with 4 additions and 3 deletions

View file

@ -304,7 +304,7 @@ function airutils.logic(self)
--special routine for automated plane
if extern_ent then
if not extern_ent.on_rightclick then
local touch_point = self.initial_properties.collisionbox[2]-0.5
local touch_point = (self.initial_properties.collisionbox[2])-0.5
local node_bellow = airutils.nodeatpos(airutils.pos_shift(curr_pos,{y=touch_point}))
--minetest.chat_send_all(dump(node_bellow.drawtype))
if (node_bellow and node_bellow.drawtype ~= 'airlike') then