1
0
Fork 0

Do not go home if attacking

hollow_logs_ref_recovery
codiac 2023-09-11 15:18:39 +10:00 committed by the-real-herowl
parent ae5564e658
commit 06f9486e4d
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ mcl_mobs.register_mob("mobs_mc:iron_golem", {
if self.home_timer > 10 then if self.home_timer > 10 then
self.home_timer = 0 self.home_timer = 0
if self._home then if self._home and self.state ~= "attack" then
local dist = vector.distance(self._home,self.object:get_pos()) local dist = vector.distance(self._home,self.object:get_pos())
if dist >= tele_dist then if dist >= tele_dist then
self.object:set_pos(self._home) self.object:set_pos(self._home)