forked from VoxeLibre/VoxeLibre
Fix random crash
This commit is contained in:
parent
c831da2c02
commit
eb7ae5e10e
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue