From e1508731d0ef40aa17aeecbedc33f1f78643c3a8 Mon Sep 17 00:00:00 2001 From: qloak Date: Wed, 15 Jul 2026 13:15:45 +0100 Subject: [PATCH] fix(TU20): more TU20 bug fixes TU20: Fixed issue where name tags do not appear to work correctly on the wither, iron golems, and wither skeletons. Fix for issue where creepers hover off the floor. --------- Co-authored-by: pieeebot <10+pieeebot@noreply.neolegacy.dev> Reviewed-on: https://git.neolegacy.dev/pieeebot/mc_pieLCE/pulls/5 Co-authored-by: qloak Co-committed-by: qloak --- Minecraft.Client/CreeperModel.cpp | 2 +- Minecraft.World/AttackDamageMobEffect.cpp | 36 +++++++++++------------ 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/Minecraft.Client/CreeperModel.cpp b/Minecraft.Client/CreeperModel.cpp index 066e0b55..14c7e55f 100644 --- a/Minecraft.Client/CreeperModel.cpp +++ b/Minecraft.Client/CreeperModel.cpp @@ -6,7 +6,7 @@ // 4J - added void CreeperModel::_init(float g) { - int yo = 4; + int yo = 6; head = new ModelPart(this, 0, 0); head->addBox(-4, - 8, -4, 8, 8, 8, g); // Head diff --git a/Minecraft.World/AttackDamageMobEffect.cpp b/Minecraft.World/AttackDamageMobEffect.cpp index 483c9a72..00ab0f95 100644 --- a/Minecraft.World/AttackDamageMobEffect.cpp +++ b/Minecraft.World/AttackDamageMobEffect.cpp @@ -1,19 +1,19 @@ -#include "stdafx.h" - -#include "AttackDamageMobEffect.h" - -AttackDamageMobEffect::AttackDamageMobEffect(int id, bool isHarmful, eMinecraftColour color) : MobEffect(id, isHarmful, color) -{ -} - -double AttackDamageMobEffect::getAttributeModifierValue(int amplifier, AttributeModifier *original) -{ - if (id == MobEffect::weakness->id) - { - return -0.5f * (amplifier + 1); - } - else - { - return 1.3 * (amplifier + 1); - } +#include "stdafx.h" + +#include "AttackDamageMobEffect.h" + +AttackDamageMobEffect::AttackDamageMobEffect(int id, bool isHarmful, eMinecraftColour color) : MobEffect(id, isHarmful, color) +{ +} + +double AttackDamageMobEffect::getAttributeModifierValue(int amplifier, AttributeModifier *original) +{ + if (id == MobEffect::weakness->id) + { + return -0.5f * (amplifier + 1); + } + else + { + return 1.3 * (amplifier + 1); + } } \ No newline at end of file