minecart tnt fix

This commit is contained in:
Lord_Cambion
2026-03-28 14:44:56 +01:00
parent a282314267
commit 6fe251b2ec
3 changed files with 5 additions and 4 deletions

View File

@@ -595,6 +595,7 @@ void ServerPlayer::die(DamageSource *source)
bool ServerPlayer::hurt(DamageSource *dmgSource, float dmg)
{
if (isInvulnerable()) return false;
if (gameMode == nullptr||gameMode->isCreative()) return false;
// 4J: Not relevant to console servers
// Allow falldamage on dedicated pvpservers -- so people cannot cheat their way out of 'fall traps'