Fix NMS loading for 1.17.1 (module rename)

This commit is contained in:
Flowsqy 2022-07-26 18:06:21 +02:00
parent 5782d5efb4
commit 020ceb5821

View File

@ -198,7 +198,7 @@ public class ShopChest extends JavaPlugin {
// 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_17_1_R1.PlatformImpl();
platform = new de.epiceric.shopchest.nms.v1_17_R2.PlatformImpl();
}
else {
platform = new de.epiceric.shopchest.nms.v1_17_R1.PlatformImpl();