mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-24 20:03:45 +01:00
Remove saved visual_size
This commit is contained in:
parent
9d08f8662d
commit
d7253e8b3b
@ -94,6 +94,13 @@ local zombie = {
|
||||
view_range = 16,
|
||||
attack_type = "dogfight",
|
||||
harmed_by_heal = true,
|
||||
on_spawn = function(self)
|
||||
-- Remove saved visual_size on old existing entites.
|
||||
-- Old entities were 3 now it's 1.
|
||||
self.visual_size = nil
|
||||
self.object:set_properties({visual_size = self.visual_size})
|
||||
self.base_size = self.visual_size
|
||||
end,
|
||||
}
|
||||
|
||||
mcl_mobs:register_mob("mobs_mc:zombie", zombie)
|
||||
|
Loading…
Reference in New Issue
Block a user