mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2025-01-14 03:21:31 +01:00
Add null check to hand patch
This commit is contained in:
parent
744252d492
commit
c817a0e9cb
@ -33,7 +33,8 @@ public class MainHandPatch implements Listener {
|
||||
return;
|
||||
|
||||
UserConnection user = Via.getManager().getConnection(event.getPlayer().getUniqueId());
|
||||
|
||||
if(user == null) return;
|
||||
|
||||
try {
|
||||
if (user.get(ProtocolInfo.class).getPipeline().contains(Protocol1_9TO1_8.class)) {
|
||||
Object settings = getSettings.invoke(event.getPlayer());
|
||||
|
Loading…
Reference in New Issue
Block a user