feat(platform): support Purpur 26.3
This commit is contained in:
1 parent
8d21617553
commit
95a7ac41e1
15 files changed
+80
-55
No files matched your search
@@ -79,7 +79,7 @@ final class AdvancedAnvilProtocolGuard implements AutoCloseable {
|
||||
this.plugin = Objects.requireNonNull(plugin);
|
||||
this.manager = Objects.requireNonNull(manager);
|
||||
this.owner = Objects.requireNonNull(owner);
|
||||
if (version == null || !version.contains("Purpur") || !version.contains("26.2.build.2618-stable")
|
||||
if (version == null || !version.contains("Purpur") || !version.contains("26.3.build.2651-stable")
|
||||
|| manager.isClosed()) throw new IllegalStateException("Unsupported Advanced Anvil generation bridge");
|
||||
gate = new PacketAdapter(PacketAdapter.params(plugin, PacketType.Play.Client.WINDOW_CLICK)
|
||||
.listenerPriority(ListenerPriority.LOWEST).optionSync()) {
|
||||
|
||||
@@ -8,7 +8,7 @@ import org.bukkit.event.inventory.ClickType;
|
||||
import org.bukkit.event.inventory.InventoryClickEvent;
|
||||
import org.bukkit.inventory.view.AnvilView;
|
||||
|
||||
/** Compile-only linkage to the checksum-pinned Purpur 26.2 build 2618 menu/packet API. */
|
||||
/** Compile-only linkage to the checksum-pinned Purpur 26.3 build 2651 menu/packet API. */
|
||||
final class NativeAnvilGeneration {
|
||||
private NativeAnvilGeneration() {}
|
||||
|
||||
|
||||
Reference in new issue
Block a user