Fix color resetting in plugins
Remove defaulting in highlighters, which isn't needed, and was setting the wrong thing anyway. Also a little new hightlighter
This commit is contained in:
@ -38,10 +38,7 @@ window.plugin.portalHighligherPortalsMyLevel.colorLevel = function(below,data) {
|
||||
if((below && portal_level <= player_level) ||
|
||||
(!below && portal_level >= player_level)) {
|
||||
data.portal.setStyle({fillColor: 'red', fillOpacity: opacity});
|
||||
} else {
|
||||
data.portal.setStyle({color: COLORS[getTeam(data.portal.options.details)],
|
||||
fillOpacity: 0.5});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var setup = function() {
|
||||
|
Reference in New Issue
Block a user