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>
|
* @param dynmapAPI <p>A reference</p>
|
||||||
*/
|
*/
|
||||||
public static void initialize(DynmapAPI dynmapAPI) {
|
public static void initialize(DynmapAPI dynmapAPI) {
|
||||||
if (dynmapAPI == null) {
|
if (dynmapAPI == null || dynmapAPI.getMarkerAPI() == null) {
|
||||||
markerSet = null;
|
markerSet = null;
|
||||||
portalIcon = null;
|
portalIcon = null;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user