From fd3b3b378572cff5f9025aa17c533627f6d2b3a7 Mon Sep 17 00:00:00 2001 From: Flowsqy <47575244+Flowsqy@users.noreply.github.com> Date: Sat, 1 Jan 2022 20:55:17 +0100 Subject: [PATCH] Fix platform loading for 1.17.1 --- plugin/src/main/java/de/epiceric/shopchest/ShopChest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin/src/main/java/de/epiceric/shopchest/ShopChest.java b/plugin/src/main/java/de/epiceric/shopchest/ShopChest.java index 23a80a3..8dbb787 100644 --- a/plugin/src/main/java/de/epiceric/shopchest/ShopChest.java +++ b/plugin/src/main/java/de/epiceric/shopchest/ShopChest.java @@ -196,8 +196,9 @@ public class ShopChest extends JavaPlugin { break; case "v1_17_R1": // Need to have an implementation for 1.17.1 and 1.17 -> Change in the name of EntityDestroyPacket + // TODO Check CraftMagicNumbers (And create a dedicated class to load Platform) if(Bukkit.getBukkitVersion().equals("1.17.1-R0.1-SNAPSHOT")){ - platform = new de.epiceric.shopchest.nms.v1_18_R1.PlatformImpl(); + platform = new de.epiceric.shopchest.nms.v1_17_1_R1.PlatformImpl(); } else { platform = new de.epiceric.shopchest.nms.v1_17_R1.PlatformImpl();