Skip to content

Commit 4a1e7d4

Browse files
committed
BUGFIX:
- Punishment: reslot event could be caused by early bailouts
1 parent 243aef4 commit 4a1e7d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/punishment/listener.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ async def onPlayerChangeSlot(self, server: Server, data: dict) -> None:
267267
return
268268

269269
delta_time = int(time.time()) - shot_time
270-
if delta_time < MAX_MISSILE_TIME:
270+
if shot_time > 0 and delta_time < MAX_MISSILE_TIME:
271271
event = {
272272
"eventName": "reslot",
273273
"server_name": server.name,

0 commit comments

Comments
 (0)