mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-26 18:39:44 -05:00
debug vdisplay
This commit is contained in:
1 parent
9b101159e6
commit
5b823e1e47
1 file changed
-2
@@ -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()) {
|
||||
|
||||
Reference in new issue
Block a user