forked from Sokomine/yl_speak_up
typos in function names corrected
This commit is contained in:
parent
c8d5293df0
commit
34e639f68f
@ -114,13 +114,13 @@ end
|
||||
|
||||
-- prevent NPC from getting hurt by special nodes
|
||||
-- This has another positive side-effect: update_tag doesn't get called constantly
|
||||
if(not(yl_speak_up.orig_do_env_damate)) then
|
||||
yl_speak_up.orig_do_env_damate = mobs.mob_class.do_env_damage
|
||||
if(not(yl_speak_up.orig_mobs_do_env_damage)) then
|
||||
yl_speak_up.orig_mobs_do_env_damage = mobs.mob_class.do_env_damage
|
||||
end
|
||||
mobs.mob_class.do_env_damage = function(self)
|
||||
-- we are only responsible for talking NPC
|
||||
if(not(self) or not(self.yl_speak_up)) then
|
||||
return yl_speak_up.orig_mobs_update_tag(self)
|
||||
return yl_speak_up.orig_mobs_do_env_damage(self)
|
||||
end
|
||||
-- *no* env dammage for NPC
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user