Everything is in the title, I'm using the plugin to 100% protect when people are offline, bases are decaying but not taking any damages from it.
Is there a way to avoid this ?
The plugin is also protecting base from decayingSolved
Alright I managed to fix this myself, just replace OnEntityDamage line 427 with this :
object OnEntityTakeDamage(BaseCombatEntity entity, HitInfo hitInfo)
{
if (hitInfo == null)
return null;
if (entity == null)
return null;
if (!hitInfo.damageTypes.Has(Rust.DamageType.Decay))
{
if (IsBlocked(entity))
return OnStructureAttack(entity, hitInfo);
}
return null;
}Base are decaying correctly and also being protected from offline raid.
Thank you !!!
I am assuming bases will stay protected from decaying if the TC has enough supplies with this edit, right?
Locked automatically