Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-20 06:50:09 +01:00
Safety null check for dismount check code
Dieser Commit ist enthalten in:
Ursprung
775e1e8921
Commit
7ef005006b
@ -79,6 +79,7 @@ public class BedrockInteractTranslator extends PacketTranslator<InteractPacket>
|
||||
session.sendDownstreamPacket(sneakPacket);
|
||||
|
||||
Entity currentVehicle = session.getPlayerEntity().getVehicle();
|
||||
if (currentVehicle != null) {
|
||||
session.setMountVehicleScheduledFuture(session.scheduleInEventLoop(() -> {
|
||||
if (session.getPlayerEntity().getVehicle() == null) {
|
||||
return;
|
||||
@ -94,6 +95,7 @@ public class BedrockInteractTranslator extends PacketTranslator<InteractPacket>
|
||||
session.sendUpstreamPacket(linkPacket);
|
||||
}
|
||||
}, 1, TimeUnit.SECONDS));
|
||||
}
|
||||
break;
|
||||
case MOUSEOVER:
|
||||
// Handle the buttons for mobile - "Mount", etc; and the suggestions for console - "ZL: Mount", etc
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren