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")) {