mirror of
https://github.com/gooba42/adventureland.git
synced 2026-10-14 10:33:47 -05:00
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:
+2
-2
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user