Skip to content

Commit 7d2678c

Browse files
committed
Fixed client-side Lua nil error in modifier_panic
1 parent ea79b0b commit 7d2678c

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

game/scripts/vscripts/modifiers/modifier_panic.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@ export class modifier_panic extends ModifierSpeed {
2828

2929
// Run when modifier instance is created
3030
OnCreated(): void {
31-
// Think every 0.3 seconds
32-
this.StartIntervalThink(0.3);
31+
if (IsServer()) {
32+
// Think every 0.3 seconds
33+
this.StartIntervalThink(0.3);
34+
}
3335
}
3436

3537
// Called when intervalThink is triggered

0 commit comments

Comments
 (0)