mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-25 01:49:49 -05:00
Merge pull request #342 from sandtechnology/master
Always send fake item packet when query chunk Former-commit-id: dcaf2425cf2c814019fdfa93796aae93d0ffa35d
This commit is contained in:
commit
e43a10133e
1 file changed
+1
-1
@@ -87,7 +87,7 @@ public class VirtualDisplayItem extends DisplayItem {
|
||||
|
||||
//send the packet later to prevent chunk loading deadlock
|
||||
plugin.getServer().getScheduler().runTaskLater(plugin, () -> {
|
||||
if (shop.isLoaded() && shop.getLocation().getChunk().getX() == x && shop.getLocation().getChunk().getZ() == z&&!packetSenders.contains(event.getPlayer().getUniqueId())) {
|
||||
if (shop.isLoaded() && shop.getLocation().getChunk().getX() == x && shop.getLocation().getChunk().getZ() == z) {
|
||||
packetSenders.add(event.getPlayer().getUniqueId());
|
||||
sendFakeItem(event.getPlayer());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user