1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-25 18:20:36 +01:00

Fixed wolf.lua to prevent crash

This commit is contained in:
LeMagnesium 2015-05-05 14:14:43 +02:00
parent 4feb6c29ef
commit 9a717127e3

View File

@ -62,11 +62,11 @@ mobs:register_mob("mobs:wolf", {
minetest.add_entity(self.object:getpos(), "mobs:dog") minetest.add_entity(self.object:getpos(), "mobs:dog")
self.object:remove() self.object:remove()
local dog_obj = minetest.add_entity(self.object:getpos(), "mobs:dog") local dog_obj = minetest.add_entity(self.object:getpos(), "mobs:dog")
dog_obj.tamed == true dog_obj.tamed = true
dog_obj.textures = {{"mobs_dog.png"},}, dog_obj.textures = {"mobs_dog.png"}
dog_obj.damage = 3 dog_obj.damage = 3
dog_obj.walk_velocity = 4, dog_obj.walk_velocity = 4
dog_obj.run_velocity = 4, dog_obj.run_velocity = 4
if dog_obj.owner == "" then if dog_obj.owner == "" then
self.owner = clicker:get_player_name() self.owner = clicker:get_player_name()
else return end else return end