9
0
mirror of https://github.com/HibiscusMC/HMCCosmetics.git synced 2026-01-06 15:51:50 +00:00

Config Fix + Balloon Work

This commit is contained in:
LoJoSho
2022-11-19 11:11:17 -06:00
parent 412bc27831
commit 0959acde35
9 changed files with 215 additions and 41 deletions

View File

@@ -45,7 +45,6 @@ public class Settings {
plugin.getLogger().severe("Problems will happen with the plugin! Delete and regenerate a new one!");
plugin.getLogger().severe("");
plugin.getLogger().severe("");
return;
}
ConfigurationNode cosmeticSettings = source.node(COSMETIC_SETTINGS_PATH);
@@ -61,9 +60,7 @@ public class Settings {
final var balloonSection = cosmeticSettings.node(BALLOON_OFFSET);
if (balloonSection != null) {
balloonOffset = loadVector(balloonSection);
}
balloonOffset = loadVector(balloonSection);
}
private static Vector loadVector(final ConfigurationNode config) {
@@ -92,6 +89,7 @@ public class Settings {
}
public static Vector getBalloonOffset() {
if (balloonOffset == null) HMCCosmeticsPlugin.getInstance().getLogger().info("Shits null");
return balloonOffset;
}