Update comment

This commit is contained in:
William committed 2021-08-27 00:59:27 +01:00
1 parent 33fc3f4c32
commit eff41f16cd
1 file changed
+2 -2
@@ -152,7 +152,7 @@ public class EditHomeCommand extends CommandBase implements TabCompleter {
} }
} }
// Remove old marker if on the Dynmap // Remove old marker if using a map integration
if (descriptionChangedHome.isPublic() && HuskHomes.getSettings().doMapIntegration() && HuskHomes.getSettings().showPublicHomesOnMap()) { if (descriptionChangedHome.isPublic() && HuskHomes.getSettings().doMapIntegration() && HuskHomes.getSettings().showPublicHomesOnMap()) {
HuskHomes.getMap().removePublicHomeMarker(homeName, p.getName()); HuskHomes.getMap().removePublicHomeMarker(homeName, p.getName());
} }
@@ -160,7 +160,7 @@ public class EditHomeCommand extends CommandBase implements TabCompleter {
// Update description // Update description
DataManager.updateHomeDescription(p.getName(), homeName, newDescriptionString, connection); DataManager.updateHomeDescription(p.getName(), homeName, newDescriptionString, connection);
// Add new marker if using Dynmap // Add new marker if using a map integration
descriptionChangedHome.setDescription(newDescriptionString); descriptionChangedHome.setDescription(newDescriptionString);
if (descriptionChangedHome.isPublic() && HuskHomes.getSettings().doMapIntegration() && HuskHomes.getSettings().showPublicHomesOnMap()) { if (descriptionChangedHome.isPublic() && HuskHomes.getSettings().doMapIntegration() && HuskHomes.getSettings().showPublicHomesOnMap()) {
HuskHomes.getMap().addPublicHomeMarker(descriptionChangedHome); HuskHomes.getMap().addPublicHomeMarker(descriptionChangedHome);