Skip to content

Commit e342531

Browse files
committed
Fixed VDI on Spigot 1.20
1 parent 8eef590 commit e342531

File tree

3 files changed

+2
-106
lines changed

3 files changed

+2
-106
lines changed

platform/quickshop-platform-interface/src/main/java/com/ghostchu/quickshop/platform/GameVersion.java

Lines changed: 0 additions & 105 deletions
This file was deleted.

quickshop-api/src/main/java/com/ghostchu/quickshop/api/GameVersion.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ public enum GameVersion {
4545
v1_19_R1(true, true, true, true, true, true),
4646
v1_19_R2(true, false, true, true, true, true),
4747
v1_19_R3(true, false, true, true, true, true),
48+
v1_20_R1(true, false, true, true, true, true),
4849
UNKNOWN(true, false, false, true, true, true);
4950
/**
5051
* CoreSupports - Check does QuickShop most features supports this server version

quickshop-bukkit/src/main/java/com/ghostchu/quickshop/shop/display/virtual/VirtualDisplayItemManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public void load() {
5454
this.packetFactory = switch (plugin.getGameVersion()) {
5555
case v1_18_R1, v1_18_R2 -> new v1_18(plugin, this);
5656
case v1_19_R1 -> new v1_19_R1(plugin, this);
57-
case v1_19_R2, v1_19_R3 -> new v1_19_R2_UP(plugin, this);
57+
case v1_19_R2, v1_19_R3, v1_20_R1 -> new v1_19_R2_UP(plugin, this);
5858
default ->
5959
throw new IllegalStateException("Unsupported Virtual Display Minecraft version: " + plugin.getGameVersion());
6060
};

0 commit comments

Comments
 (0)