From 311503ec466379c01689e26e0b16de6533987e64 Mon Sep 17 00:00:00 2001 From: Lord_Cambion Date: Tue, 26 May 2026 19:02:54 +0200 Subject: [PATCH] fix: /kill now kills the player if in creative --- Minecraft.Client/ServerPlayer.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Minecraft.Client/ServerPlayer.cpp b/Minecraft.Client/ServerPlayer.cpp index 04f5691c..3cffcd5f 100644 --- a/Minecraft.Client/ServerPlayer.cpp +++ b/Minecraft.Client/ServerPlayer.cpp @@ -850,8 +850,10 @@ void ServerPlayer::die(DamageSource *source) bool ServerPlayer::hurt(DamageSource *dmgSource, float dmg) { - if (isInvulnerable()) return false; - if (gameMode == nullptr||gameMode->isCreative()) return false; + if (isInvulnerable() && dmgSource != DamageSource::outOfWorld) return false; + if (gameMode == nullptr || gameMode->isCreative()) { + if (dmgSource != DamageSource::outOfWorld) return false; + } // 4J: Not relevant to console servers // Allow falldamage on dedicated pvpservers -- so people cannot cheat their way out of 'fall traps'