Avoids a NullPointerException if dynmap is present, but isn't loaded properly
This commit is contained in:
parent
cae34d395b
commit
ce5f3ef52f
@ -29,7 +29,7 @@ public final class DynmapManager {
|
||||
* @param dynmapAPI <p>A reference</p>
|
||||
*/
|
||||
public static void initialize(DynmapAPI dynmapAPI) {
|
||||
if (dynmapAPI == null) {
|
||||
if (dynmapAPI == null || dynmapAPI.getMarkerAPI() == null) {
|
||||
markerSet = null;
|
||||
portalIcon = null;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user