1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-24 01:30:38 +01:00

fix bug mobs collisionbox

indent code
0.4.12-stable version serialize is buggy
This commit is contained in:
crabman77 2015-08-19 22:15:48 +02:00
parent d8477debc4
commit 0b6747966f

View File

@ -1058,12 +1058,12 @@ end
end
-- select random texture, set model and size
if not self.base_texture then
--if not self.base_texture then
self.base_texture = def.textures[math.random(1, #def.textures)]
self.base_mesh = def.mesh
self.base_size = self.visual_size
self.base_colbox = self.collisionbox
end
self.base_size = def.visual_size
self.base_colbox = def.collisionbox
--end
-- set texture, model and size
local textures = self.base_texture
@ -1125,14 +1125,14 @@ end
get_staticdata = function(self)
-- remove mob when out of range unless tamed
if mobs.remove and self.remove_ok and not self.tamed then
print ("REMOVED", self.remove_ok, self.name)
self.object:remove()
end
self.remove_ok = true
self.attack = nil
self.following = nil
-- remove mob when out of range unless tamed
if mobs.remove and self.remove_ok and not self.tamed then
print ("REMOVED", self.remove_ok, self.name)
self.object:remove()
end
self.remove_ok = true
self.attack = nil
self.following = nil
local tmp = {}
for _,stat in pairs(self) do