Merge pull request #342 from sandtechnology/master

Always send fake item packet when query chunk

Former-commit-id: dcaf2425cf2c814019fdfa93796aae93d0ffa35d
This commit is contained in:
Ghost_chu authored and GitHub committed 2020-02-16 16:09:41 +08:00
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());
}