Make golem go home. Fixes #3288 #3929

Merged
the-real-herowl merged 4 commits from golem_nav into master 2023-11-06 23:31:47 +01:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 06f9486e4d - Show all commits

View File

@ -91,7 +91,7 @@ mcl_mobs.register_mob("mobs_mc:iron_golem", {
if self.home_timer > 10 then
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())
if dist >= tele_dist then
self.object:set_pos(self._home)