Clean copper for a skeleton trap's visual lightning too

This commit is contained in:
Kacpherek
2026-10-26 17:05:35 +01:00
parent 85a6ce0921
commit 5d3e9d218d
@@ -221,6 +221,12 @@ impl Game<'_> {
if !b.visual_only {
self.bolt_fire(b.at, 4);
self.strike_rod(b.at);
}
// LightningBolt.tick runs clearCopperOnLightningStrike for
// every server bolt, a skeleton trap's visual one included;
// a client's copy of a server bolt (spawn_remote_bolt) only
// flashes.
if self.remote.is_none() {
self.bolt_clear_copper(b.at);
}
}