Add fabric builds for older MC versions & add checkstyle (#449)

* Remove instance getters, improve command logic, register APi

* Publish multiple fabric builds, enforce checkstyle

* Bump guava

* Bump to 4.4.2
This commit is contained in:
William authored and GitHub committed 2023-07-02 13:26:12 +01:00
1 parent 51baf196b3
commit c9f5262292
219 files changed
+8032 -1392

No files matched your search

@@ -34,7 +34,7 @@ import org.jetbrains.annotations.Nullable;
import java.util.Optional;
/**
* Hook to display warps and public homes on Dynmap
* Hook to display warps and public homes on Dynmap.
*/
public class DynmapHook extends MapHook {
@@ -171,8 +171,12 @@ public class DynmapHook extends MapHook {
return getDynmap().map(api -> {
publicHomesMarkers = api.getMarkerAPI().getMarkerSet(getPublicHomesKey());
if (publicHomesMarkers == null) {
publicHomesMarkers = api.getMarkerAPI().createMarkerSet(getPublicHomesKey(), getPublicHomesMarkerSetName(),
api.getMarkerAPI().getMarkerIcons(), false);
publicHomesMarkers = api.getMarkerAPI().createMarkerSet(
getPublicHomesKey(),
getPublicHomesMarkerSetName(),
api.getMarkerAPI().getMarkerIcons(),
false
);
} else {
publicHomesMarkers.setMarkerSetLabel(getPublicHomesMarkerSetName());
}