Don't process entity if none returned
This commit is contained in:
@ -73,7 +73,9 @@ window.MapDataRequest = function() {
|
|||||||
// add a portalDetailLoaded hook, so we can use the exteneed details to update portals on the map
|
// add a portalDetailLoaded hook, so we can use the exteneed details to update portals on the map
|
||||||
var _this = this;
|
var _this = this;
|
||||||
addHook('portalDetailLoaded', function(data){
|
addHook('portalDetailLoaded', function(data){
|
||||||
|
if(data.success) {
|
||||||
_this.render.processGameEntities([data.ent]);
|
_this.render.processGameEntities([data.ent]);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user