From 5b823e1e47eb465dc567e32f671917976a35e12e Mon Sep 17 00:00:00 2001 From: Ghost_chu <2908803755@qq.com> Date: Sun, 20 Jun 2021 10:34:55 +0800 Subject: [PATCH] debug vdisplay --- .../java/org/maxgamer/quickshop/shop/VirtualDisplayItem.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main/java/org/maxgamer/quickshop/shop/VirtualDisplayItem.java b/src/main/java/org/maxgamer/quickshop/shop/VirtualDisplayItem.java index dd31e05a1..c7dd5d0bd 100644 --- a/src/main/java/org/maxgamer/quickshop/shop/VirtualDisplayItem.java +++ b/src/main/java/org/maxgamer/quickshop/shop/VirtualDisplayItem.java @@ -234,13 +234,11 @@ public class VirtualDisplayItem extends DisplayItem { asyncPacketSenderTask.start(plugin); if (packetAdapter == null) { - packetAdapter = new PacketAdapter(plugin, ListenerPriority.HIGH, PacketType.Play.Server.MAP_CHUNK) { @Override public void onPacketSending(@NotNull PacketEvent event) { //is really full chunk data //In 1.17, this value was removed, so read safely - Util.debugLog("SENDING: " + event); Boolean boxedIsFull = event.getPacket().getBooleans().readSafely(0); boolean isFull = boxedIsFull == null || boxedIsFull; if (!shop.isLoaded() || !isDisplay || !isFull || shop.isLeftShop()) {