From 3e40f82d9aea6fa325fe89eff7486d52b9ab2987 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Wed, 1 Jul 2020 15:05:38 +0100 Subject: [PATCH] fix error on loading for some versions --- .../src/main/java/com/boydti/fawe/bukkit/FaweBukkit.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/FaweBukkit.java b/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/FaweBukkit.java index b6a8a7755..6a5327618 100644 --- a/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/FaweBukkit.java +++ b/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/FaweBukkit.java @@ -82,6 +82,8 @@ public class FaweBukkit implements IFawe, Listener { e.printStackTrace(); Bukkit.getServer().shutdown(); } + + chunksStretched = Integer.parseInt(Bukkit.getBukkitVersion().split("-")[0].split("\\.")[1]) >= 16; //Vault is Spigot/Paper only so this needs to be done in the Bukkit module setupVault(); @@ -100,8 +102,6 @@ public class FaweBukkit implements IFawe, Listener { // The tick limiter new ChunkListener_9(); }); - - chunksStretched = Integer.parseInt(Bukkit.getMinecraftVersion().split("\\.")[1]) >= 16; } @Override // Please don't delete this again, it's WIP