Update reject_deferred calls to include place for death and disappear events

Without these, when the player goes to check where the promise originated from, the result doesn't tell you.
This commit is contained in:
FreezePhoenix
2026-01-20 15:06:05 -05:00
committed by GitHub
parent c8b59bc017
commit 601761fb73
+2 -2
View File
@@ -3096,13 +3096,13 @@ function init_socket(args)
});
socket.on('death',function(data){
// unused now
if(data.place) reject_deferred(data.place,{reason:data.reason||"not_found"});
if(data.place) reject_deferred(data.place,{place:data.place,reason:data.reason||"not_found"});
call_code_function("trigger_event","death",data);
data.death=true;
on_disappear(data);
});
socket.on("disappear",function(data){
if(data.place) reject_deferred(data.place,{reason:data.reason||"not_found"});
if(data.place) reject_deferred(data.place,{place:data.place,reason:data.reason||"not_found"});
on_disappear(data);
});
socket.on('entities',function(data){