From 204e4c07e9a539198bb893433fce2c9bc2fa8ded Mon Sep 17 00:00:00 2001 From: Sekwah Date: Wed, 18 Dec 2024 09:59:07 +0000 Subject: [PATCH] fix: portalProtectionRadius spelt wrong in the config --- .../core/repository/impl/ConfigRepositoryImpl.java | 2 +- .../advancedportals/core/serializeddata/config/Config.java | 2 +- .../advancedportals/spigot/importer/LegacyImporter.java | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/main/java/com/sekwah/advancedportals/core/repository/impl/ConfigRepositoryImpl.java b/core/src/main/java/com/sekwah/advancedportals/core/repository/impl/ConfigRepositoryImpl.java index 788ed135..74c55c39 100644 --- a/core/src/main/java/com/sekwah/advancedportals/core/repository/impl/ConfigRepositoryImpl.java +++ b/core/src/main/java/com/sekwah/advancedportals/core/repository/impl/ConfigRepositoryImpl.java @@ -67,7 +67,7 @@ public boolean isProtectionActive() { @Override public int getProtectionRadius() { - return this.config.portalProtectionRaduis; + return this.config.portalProtectionRadius; } @Override diff --git a/core/src/main/java/com/sekwah/advancedportals/core/serializeddata/config/Config.java b/core/src/main/java/com/sekwah/advancedportals/core/serializeddata/config/Config.java index ad638b20..34bf8545 100644 --- a/core/src/main/java/com/sekwah/advancedportals/core/serializeddata/config/Config.java +++ b/core/src/main/java/com/sekwah/advancedportals/core/serializeddata/config/Config.java @@ -10,7 +10,7 @@ public class Config { public boolean portalProtection = true; - public int portalProtectionRaduis = 5; + public int portalProtectionRadius = 5; public String defaultTriggerBlock = "NETHER_PORTAL"; diff --git a/spigot/src/main/java/com/sekwah/advancedportals/spigot/importer/LegacyImporter.java b/spigot/src/main/java/com/sekwah/advancedportals/spigot/importer/LegacyImporter.java index 4ebb1ecf..32f20b11 100644 --- a/spigot/src/main/java/com/sekwah/advancedportals/spigot/importer/LegacyImporter.java +++ b/spigot/src/main/java/com/sekwah/advancedportals/spigot/importer/LegacyImporter.java @@ -156,8 +156,8 @@ public static void importConfig(ConfigRepository configRepo) { configOld.getString("AxeItemId", config.selectorMaterial); config.portalProtection = configOld.getBoolean("PortalProtection", config.portalProtection); - config.portalProtectionRaduis = configOld.getInt( - "PortalProtectionArea", config.portalProtectionRaduis); + config.portalProtectionRadius = configOld.getInt( + "PortalProtectionArea", config.portalProtectionRadius); config.defaultTriggerBlock = configOld.getString( "DefaultPortalTriggerBlock", config.defaultTriggerBlock); if (config.defaultTriggerBlock.equals("PORTAL")) {