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
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
...@@ -40,9 +40,11 @@ function savetime() ...@@ -40,9 +40,11 @@ function savetime()
function player_put() function player_put()
{ {
if (player.Record !== undefined) {
player.lastsaved = savetime(); player.lastsaved = savetime();
player.put(); player.put();
} }
}
var Player_Def = [ var Player_Def = [
{ // 0 { // 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment