1
0
Fork 0

Fix random crash

This commit is contained in:
jordan4ibanez 2021-04-23 16:28:30 -04:00
parent c831da2c02
commit eb7ae5e10e
1 changed files with 5 additions and 0 deletions

View File

@ -85,6 +85,11 @@ end
-- states are executed here -- states are executed here
local land_state_execution = function(self,dtime) local land_state_execution = function(self,dtime)
--no collisionbox exception
if not self.object:get_properties() then
return
end
local pos = self.object:get_pos() local pos = self.object:get_pos()
local collisionbox = self.object:get_properties().collisionbox local collisionbox = self.object:get_properties().collisionbox
--get the center of the mob --get the center of the mob