mirror of
https://github.com/filoghost/HolographicDisplays.git
synced 2025-02-28 18:01:04 +01:00
Ignore async threads in ProtocolLib listener
This commit is contained in:
parent
664c6c6151
commit
ed75cdee08
@ -18,11 +18,11 @@ import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.plugin.Plugin;
|
||||
|
||||
import com.comphenix.net.sf.cglib.proxy.Factory;
|
||||
import com.comphenix.protocol.PacketType;
|
||||
import com.comphenix.protocol.ProtocolLibrary;
|
||||
import com.comphenix.protocol.events.ListenerPriority;
|
||||
@ -81,7 +81,7 @@ public class ProtocolLibHookImpl implements ProtocolLibHook {
|
||||
|
||||
@Override
|
||||
public void onPacketSending(PacketEvent event) {
|
||||
if (event.isPlayerTemporary()) {
|
||||
if (event.isPlayerTemporary() || !Bukkit.isPrimaryThread()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user