3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-09-19 17:50:08 +02:00

Update DeviceOs to latest protocol

Dieser Commit ist enthalten in:
rtm516 2024-04-07 12:44:50 +01:00
Ursprung 3d9f3ac645
Commit 45e2547e62
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 331715B8B007C67A
2 geänderte Dateien mit 8 neuen und 7 gelöschten Zeilen

Datei anzeigen

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2019-2022 GeyserMC. http://geysermc.org * Copyright (c) 2019-2024 GeyserMC. http://geysermc.org
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@ -39,15 +39,16 @@ public enum DeviceOs {
OSX("macOS"), OSX("macOS"),
AMAZON("Amazon"), AMAZON("Amazon"),
GEARVR("Gear VR"), GEARVR("Gear VR"),
HOLOLENS("Hololens"), HOLOLENS("Hololens"), // Removed from protocol but kept to keep numbers the same
UWP("Windows"), UWP("Windows"),
WIN32("Windows x86"), WIN32("Windows x86"),
DEDICATED("Dedicated"), DEDICATED("Dedicated"),
TVOS("Apple TV"), TVOS("Apple TV"),
PS4("PS4"), SONY("PlayStation"),
NX("Switch"), NX("Switch"),
XBOX("Xbox One"), XBOX("Xbox"),
WINDOWS_PHONE("Windows Phone"); WINDOWS_PHONE("Windows Phone"),
LINUX("Linux");
private static final DeviceOs[] VALUES = values(); private static final DeviceOs[] VALUES = values();

Datei anzeigen

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2019-2022 GeyserMC. http://geysermc.org * Copyright (c) 2019-2024 GeyserMC. http://geysermc.org
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
@ -68,7 +68,7 @@ public class FireworkEntity extends Entity {
// TODO: Remove once Mojang fixes bugs with fireworks crashing clients on these specific devices. // TODO: Remove once Mojang fixes bugs with fireworks crashing clients on these specific devices.
// https://bugs.mojang.com/browse/MCPE-89115 // https://bugs.mojang.com/browse/MCPE-89115
if (session.getClientData().getDeviceOs() == DeviceOs.XBOX if (session.getClientData().getDeviceOs() == DeviceOs.XBOX
|| session.getClientData().getDeviceOs() == DeviceOs.PS4) { || session.getClientData().getDeviceOs() == DeviceOs.SONY) {
return; return;
} }