fix: setting smashable ignoring lnv settings (#1992)

tested that the computer build on crux no longer stays around for +12 seconds
This commit is contained in:
David Markowitz
2026-06-11 07:11:52 -07:00
committed by GitHub
parent bb8f569354
commit 90607bdd5c

View File

@@ -427,7 +427,7 @@ void Entity::Initialize() {
comp->SetMaxArmor(destCompData[0].armor);
comp->SetDeathBehavior(destCompData[0].death_behavior);
comp->SetIsSmashable(destCompData[0].isSmashable);
comp->SetIsSmashable(comp->GetIsSmashable() || destCompData[0].isSmashable);
comp->SetLootMatrixID(destCompData[0].LootMatrixIndex);
comp->SetCurrencyIndex(destCompData[0].CurrencyIndex);