mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
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:
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());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user