Remove resource nodes without getting console warnings?

I've replicated exactly what Custom Resource Spawner does to remove it's resource nodes, but my console still gets spammed with:
"Calling kill - but already IsDestroyed!? orebonus_generic[0]

if(entity OreResourceEntity)
{
        (entity as OreResourceEntity)._hotSpot.Kill(BaseNetworkable.DestroyMode.None);
}

entity.Kill();

I even tried checking if the entity is destroyed before calling kill. I'm unsure why his plugin doesn't spam console but mine does.

'it's' can't be possessive, dude.

You might have a higher auth level? (I do not know if) this causes a different level of RCON logs? l would imagine that this is semi-common, and a code god will be along shortly to let you know about how to error-handle this.

I was originially gonna say you can make a filter in RustAdmin to ignore those messages.
Kill kills the bonus entity (yellow thingy) and you should not kill it manually - that's why. Also if .Die() is available consider using it
5b6ed4c9ac8e4.jpg misticos
Kill kills the bonus entity (yellow thingy) and you should not kill it manually - that's why. Also if .Die() is available consider using it

I could've sworn I've used just `ent.Kill();` in the past and it didn't remove the hotspots. Works now.

What do you mean by "you should not kill it manually"?

I mean you should not kill the ore spot manually - ore automatically should kill it in OnKilled method that should be called IIRC.

check it by

entity.IsValid()

before killing

nah-nah Orange, game destroys ore without checking because plugins are not supposed to do this. or am I wrong? so having this check will not help because it will not add it to game code
5b6ed4c9ac8e4.jpg misticos
nah-nah Orange, game destroys ore without checking because plugins are not supposed to do this. or am I wrong? so having this check will not help because it will not add it to game code

It doesnt matters. His problem is that he got warning on killing "something". It can happen with different things... He just need to make checks, that's all