fix(TU20): TNT minecart exploding despite 'TNT Explodes' option being turned off.

This commit is contained in:
2026-07-15 00:13:08 +03:00
parent 22bcbde6a3
commit 636bf0b692
+2 -2
View File
@@ -77,7 +77,7 @@ void MinecartTNT::destroy(DamageSource *source)
void MinecartTNT::explode(double speedSqr)
{
if (!level->isClientSide)
if (!level->isClientSide && app.GetGameHostOption(eGameHostOption_TNT))
{
double speed = sqrt(speedSqr);
if (speed > 5) speed = 5;
@@ -121,7 +121,7 @@ void MinecartTNT::primeFuse()
{
fuse = 80;
if (!level->isClientSide)
if (!level->isClientSide && app.GetGameHostOption(eGameHostOption_TNT))
{
level->broadcastEntityEvent(shared_from_this(), EVENT_PRIME);
level->playEntitySound(shared_from_this(), eSoundType_RANDOM_FUSE, 1, 1.0f);