Skip to content

Commit

Permalink
Fix platform loading for 1.17.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Flowsqy committed Jan 1, 2022
1 parent dea7867 commit fd3b3b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugin/src/main/java/de/epiceric/shopchest/ShopChest.java
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,9 @@ public void onEnable() {
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();
Expand Down

0 comments on commit fd3b3b3

Please sign in to comment.