From c46bb5bcf5e88a415dc045271fe1a174c3a623f4 Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Sat, 25 Mar 2023 00:31:50 +0100 Subject: [PATCH] Update Folia check --- .../java/com/viaversion/viaversion/ViaVersionPlugin.java | 6 +++--- gradle.properties | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bukkit/src/main/java/com/viaversion/viaversion/ViaVersionPlugin.java b/bukkit/src/main/java/com/viaversion/viaversion/ViaVersionPlugin.java index bef42168f..fc6ffdc8e 100644 --- a/bukkit/src/main/java/com/viaversion/viaversion/ViaVersionPlugin.java +++ b/bukkit/src/main/java/com/viaversion/viaversion/ViaVersionPlugin.java @@ -55,7 +55,7 @@ import org.bukkit.plugin.Plugin; import org.bukkit.plugin.java.JavaPlugin; public class ViaVersionPlugin extends JavaPlugin implements ViaPlatform { - private static final boolean FOLIA = PaperViaInjector.hasClass("io.papermc.paper.threadedregions.RegionisedServer"); + private static final boolean FOLIA = PaperViaInjector.hasClass("io.papermc.paper.threadedregions.RegionizedServer"); private static ViaVersionPlugin instance; private final BukkitCommandHandler commandHandler; private final BukkitViaConfig conf; @@ -109,11 +109,11 @@ public class ViaVersionPlugin extends JavaPlugin implements ViaPlatform } if (FOLIA) { - // Use Folia's RegionisedServerInitEvent to run code after the server has loaded + // Use Folia's RegionizedServerInitEvent to run code after the server has loaded final Class serverInitEventClass; try { //noinspection unchecked - serverInitEventClass = (Class) Class.forName("io.papermc.paper.threadedregions.RegionisedServerInitEvent"); + serverInitEventClass = (Class) Class.forName("io.papermc.paper.threadedregions.RegionizedServerInitEvent"); } catch (final ReflectiveOperationException e) { throw new RuntimeException(e); } diff --git a/gradle.properties b/gradle.properties index 36078f061..0a6b74eef 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ # Project properties - we put these here so they can be modified without causing a recompile of the build scripts -projectVersion=4.6.2 +projectVersion=4.6.3-SNAPSHOT # Gradle properties org.gradle.daemon=true