diff --git a/DynmapCore/src/main/resources/extracted/web/js/playermarkers.js b/DynmapCore/src/main/resources/extracted/web/js/playermarkers.js index 8f5a48b4..c2a7e028 100644 --- a/DynmapCore/src/main/resources/extracted/web/js/playermarkers.js +++ b/DynmapCore/src/main/resources/extracted/web/js/playermarkers.js @@ -94,7 +94,7 @@ componentconstructors['playermarkers'] = function(dynmap, configuration) { var markerPosition = dynmap.getProjection().fromLocationToLatLng(player.location); player.marker.setLatLng(markerPosition); // Update health - if (configuration.showplayerhealth) { + if (configuration.showplayerhealth && player.healthContainer) { if (player.health !== undefined && player.armor !== undefined) { player.healthContainer.css('display','block'); player.healthBar.css('width', Math.ceil(player.health*2.5) + 'px');