Skip to content
Snippets Groups Projects
Commit 646107d2 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Fix a (harmless) user creation error

When a players map is set, it automatically triggers a player record
write.  When a new player is being created, the map is set before
the player is added via @addchar.

This attempted to write record number undefined in the player file,
which threw an exception.  Since exceptions are being caught, logged,
and ignored, this did not cause a problem, but did log an error when
it wasn't necessary.
parent d0a094b2
Branches
Tags
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -40,8 +40,10 @@ function savetime()
function player_put()
{
player.lastsaved = savetime();
player.put();
if (player.Record !== undefined) {
player.lastsaved = savetime();
player.put();
}
}
var Player_Def = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment