1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-01-11 18:40:25 +01:00

Fixed mobs' update

This commit is contained in:
LeMagnesium 2015-05-22 19:28:57 +02:00
parent 20db3b7637
commit a7e5bacb65
2 changed files with 36 additions and 37 deletions

View File

@ -1139,7 +1139,6 @@ function mobs:explosion(pos, radius, fire, smoke, sound)
effect(p, 2, "tnt_smoke.png", 5)
end
end
end
vi = vi + 1
end
end

View File

@ -94,6 +94,7 @@ mobs:register_mob("mobs:npc", {
self.diamond_count = (self.diamond_count or 0) + 1
if not minetest.setting_getbool("creative_mode") then
item:take_item()
end
-- pick up npc
elseif item:get_name() == "mobs:magic_lasso"
and clicker:is_player()
@ -120,7 +121,6 @@ mobs:register_mob("mobs:npc", {
-- if owner switch between follow and stand
if self.owner and self.owner == clicker:get_player_name() then
self.damages = 4
else
if self.order == "follow" then
self.order = "stand"
else