mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-25 02:00:37 +01:00
Fixed wolf.lua to prevent crash
This commit is contained in:
parent
4feb6c29ef
commit
9a717127e3
@ -62,11 +62,11 @@ mobs:register_mob("mobs:wolf", {
|
||||
minetest.add_entity(self.object:getpos(), "mobs:dog")
|
||||
self.object:remove()
|
||||
local dog_obj = minetest.add_entity(self.object:getpos(), "mobs:dog")
|
||||
dog_obj.tamed == true
|
||||
dog_obj.textures = {{"mobs_dog.png"},},
|
||||
dog_obj.tamed = true
|
||||
dog_obj.textures = {"mobs_dog.png"}
|
||||
dog_obj.damage = 3
|
||||
dog_obj.walk_velocity = 4,
|
||||
dog_obj.run_velocity = 4,
|
||||
dog_obj.walk_velocity = 4
|
||||
dog_obj.run_velocity = 4
|
||||
if dog_obj.owner == "" then
|
||||
self.owner = clicker:get_player_name()
|
||||
else return end
|
||||
|
Loading…
Reference in New Issue
Block a user