From 09c305e970df809de4e96d0d79e80e3b566ffa57 Mon Sep 17 00:00:00 2001 From: Fireblade <3+fireblade@noreply.neolegacy.dev> Date: Fri, 24 Jul 2026 17:44:59 -0400 Subject: [PATCH] fix: magma block damage still taking effect when the player has frost walker --- Minecraft.World/LivingEntity.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Minecraft.World/LivingEntity.cpp b/Minecraft.World/LivingEntity.cpp index 798a45f7..acaf00a4 100644 --- a/Minecraft.World/LivingEntity.cpp +++ b/Minecraft.World/LivingEntity.cpp @@ -213,7 +213,8 @@ void LivingEntity::baseTick() if (!level->isClientSide && isAlive() && onGround && !isSneaking() && tickCount % 10 == 0) { int tileBelow = level->getTile(Mth::floor(x), Mth::floor(bb->y0) - 1, Mth::floor(z)); - if (tileBelow == Tile::magma_block_Id) + bool hasFrostWalker = EnchantmentHelper::getEnchantmentLevel(Enchantment::frostWalker->id, getEquipmentSlots()) > 0; + if (tileBelow == Tile::magma_block_Id && !hasFrostWalker) { hurt(DamageSource::hotFloor, 1); }