Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-20 06:50:08 +01:00
Add null check to hand patch
Dieser Commit ist enthalten in:
Ursprung
744252d492
Commit
c817a0e9cb
@ -33,7 +33,8 @@ public class MainHandPatch implements Listener {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
UserConnection user = Via.getManager().getConnection(event.getPlayer().getUniqueId());
|
UserConnection user = Via.getManager().getConnection(event.getPlayer().getUniqueId());
|
||||||
|
if(user == null) return;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (user.get(ProtocolInfo.class).getPipeline().contains(Protocol1_9TO1_8.class)) {
|
if (user.get(ProtocolInfo.class).getPipeline().contains(Protocol1_9TO1_8.class)) {
|
||||||
Object settings = getSettings.invoke(event.getPlayer());
|
Object settings = getSettings.invoke(event.getPlayer());
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren