diff --git a/code/hooks.js b/code/hooks.js index f0c4b66f..5b4eb167 100644 --- a/code/hooks.js +++ b/code/hooks.js @@ -42,7 +42,7 @@ // array to change order or add additional values to the // details of a portal. // beforePortalReRender: the callback argument is -// {portal: ent[2], oldPortal : d, reRender : false}. +// {portal: ent[2], oldPortal : d, portalGuid: ent[0], reRender : false}. // The callback needs to update the value of reRender to // true if the plugin has a reason to have the portal // redrawn. It is called early on in the diff --git a/code/map_data.js b/code/map_data.js index 118172fa..45af74c3 100644 --- a/code/map_data.js +++ b/code/map_data.js @@ -264,7 +264,7 @@ window.renderPortal = function(ent) { u = u || oo.level !== portalLevel; // Allow plugins to add additional conditions as to when a portal gets re-rendered - var hookData = {portal: ent[2], oldPortal: oo.details, reRender: false}; + var hookData = {portal: ent[2], oldPortal: oo.details, portalGuid: ent[0], reRender: false}; runHooks('beforePortalReRender', hookData); u = u || hookData.reRender;