Skip to content

Commit 6f589ba

Browse files
committed
workaround: HolographicDisplays java.lang.IllegalArgumentException: entityID cannot be negative
1 parent b7a5912 commit 6f589ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/maxgamer/quickshop/shop/VirtualDisplayItem.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
import java.util.concurrent.atomic.AtomicInteger;
5656

5757
public class VirtualDisplayItem extends AbstractDisplayItem {
58-
private static final AtomicInteger COUNTER = new AtomicInteger(0);
58+
private static final AtomicInteger COUNTER = new AtomicInteger(Integer.MAX_VALUE);
5959
private static final GameVersion VERSION = QuickShop.getInstance().getGameVersion();
6060
private static final ProtocolManager PROTOCOL_MANAGER = ProtocolLibrary.getProtocolManager();
6161
private static PacketAdapter packetAdapter = null;

0 commit comments

Comments
 (0)