mirror of
https://github.com/PryPurity/WorldBorder.git
synced 2024-11-15 10:25:14 +01:00
If attempting to get MarkerAPI from DynMap results in an NPE (like version 0.35 if DynMap's Spout integration fails), it will no longer prevent WorldBorder from continuing to load.
This commit is contained in:
parent
247e9052c2
commit
c4127c35ad
@ -57,8 +57,16 @@ public class DynMapFeatures
|
||||
return;
|
||||
}
|
||||
|
||||
markApi = api.getMarkerAPI();
|
||||
if (markApi == null) return;
|
||||
try
|
||||
{
|
||||
markApi = api.getMarkerAPI();
|
||||
if (markApi == null) return;
|
||||
}
|
||||
catch (NullPointerException ex)
|
||||
{
|
||||
Config.LogConfig("DynMap is present, but a NullPointerException was encountered while attempting to integrate. Border display disabled.");
|
||||
return;
|
||||
}
|
||||
|
||||
// go ahead and show borders for all worlds
|
||||
showAllBorders();
|
||||
|
Loading…
Reference in New Issue
Block a user