aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World
diff options
context:
space:
mode:
authorSiobhan 🏳️‍⚧️ <33694155+siobhan-saoirse@users.noreply.github.com>2026-03-05 02:22:31 -0500
committerGitHub <noreply@github.com>2026-03-05 14:22:31 +0700
commit981c87732c3b075e74b6fafee0f2572bb98c5572 (patch)
tree3d75067938a48721175f3c9205840a3bf066b83c /Minecraft.World
parent87e3bd193cf36c60d411b50ceead4cd6d5079441 (diff)
Restore the original follow range for Zombies and Withers (#510)
* Restore original follow range for Zombie * Restore original WitherBoss follow range
Diffstat (limited to 'Minecraft.World')
-rw-r--r--Minecraft.World/WitherBoss.cpp4
-rw-r--r--Minecraft.World/Zombie.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/Minecraft.World/WitherBoss.cpp b/Minecraft.World/WitherBoss.cpp
index 676f07d9..84cf1382 100644
--- a/Minecraft.World/WitherBoss.cpp
+++ b/Minecraft.World/WitherBoss.cpp
@@ -535,7 +535,7 @@ void WitherBoss::registerAttributes()
getAttribute(SharedMonsterAttributes::MOVEMENT_SPEED)->setBaseValue(0.6f);
// 4J Stu - Don't make it so far!
- //getAttribute(SharedMonsterAttributes::FOLLOW_RANGE)->setBaseValue(40);
+ getAttribute(SharedMonsterAttributes::FOLLOW_RANGE)->setBaseValue(40);
}
float WitherBoss::getHeadYRot(int i)
@@ -581,4 +581,4 @@ MobType WitherBoss::getMobType()
void WitherBoss::ride(shared_ptr<Entity> e)
{
riding = nullptr;
-} \ No newline at end of file
+}
diff --git a/Minecraft.World/Zombie.cpp b/Minecraft.World/Zombie.cpp
index df9d5c6b..7cdc3180 100644
--- a/Minecraft.World/Zombie.cpp
+++ b/Minecraft.World/Zombie.cpp
@@ -56,7 +56,7 @@ void Zombie::registerAttributes()
Monster::registerAttributes();
// 4J Stu - Don't make it so far!
- //getAttribute(SharedMonsterAttributes::FOLLOW_RANGE)->setBaseValue(40);
+ getAttribute(SharedMonsterAttributes::FOLLOW_RANGE)->setBaseValue(40);
getAttribute(SharedMonsterAttributes::MOVEMENT_SPEED)->setBaseValue(0.23f);
getAttribute(SharedMonsterAttributes::ATTACK_DAMAGE)->setBaseValue(3);
@@ -490,4 +490,4 @@ Zombie::ZombieGroupData::ZombieGroupData(bool baby, bool villager)
{
isBaby = baby;
isVillager = villager;
-} \ No newline at end of file
+}