typos in function names corrected

This commit is contained in:
Sokomine 2024-01-17 04:15:24 +01:00
parent c8d5293df0
commit 34e639f68f

View File

@ -114,13 +114,13 @@ end
-- prevent NPC from getting hurt by special nodes -- prevent NPC from getting hurt by special nodes
-- This has another positive side-effect: update_tag doesn't get called constantly -- This has another positive side-effect: update_tag doesn't get called constantly
if(not(yl_speak_up.orig_do_env_damate)) then if(not(yl_speak_up.orig_mobs_do_env_damage)) then
yl_speak_up.orig_do_env_damate = mobs.mob_class.do_env_damage yl_speak_up.orig_mobs_do_env_damage = mobs.mob_class.do_env_damage
end end
mobs.mob_class.do_env_damage = function(self) mobs.mob_class.do_env_damage = function(self)
-- we are only responsible for talking NPC -- we are only responsible for talking NPC
if(not(self) or not(self.yl_speak_up)) then 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 end
-- *no* env dammage for NPC -- *no* env dammage for NPC
return return