Fix platform loading for 1.17.1

This commit is contained in:
Flowsqy 2022-01-01 20:55:17 +01:00
parent dea78676e9
commit fd3b3b3785

View File

@ -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();