Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-10-03 08:21:06 +02:00
Revert enum name change and add deprecation annotations
Dieser Commit ist enthalten in:
Ursprung
45e2547e62
Commit
57a9e5efc3
@ -39,15 +39,18 @@ public enum DeviceOs {
|
||||
OSX("macOS"),
|
||||
AMAZON("Amazon"),
|
||||
GEARVR("Gear VR"),
|
||||
HOLOLENS("Hololens"), // Removed from protocol but kept to keep numbers the same
|
||||
@Deprecated HOLOLENS("Hololens"),
|
||||
UWP("Windows"),
|
||||
WIN32("Windows x86"),
|
||||
DEDICATED("Dedicated"),
|
||||
TVOS("Apple TV"),
|
||||
SONY("PlayStation"),
|
||||
@Deprecated TVOS("Apple TV"),
|
||||
/**
|
||||
* This is for all PlayStation platforms not just PS4
|
||||
*/
|
||||
PS4("PlayStation"),
|
||||
NX("Switch"),
|
||||
XBOX("Xbox"),
|
||||
WINDOWS_PHONE("Windows Phone"),
|
||||
@Deprecated WINDOWS_PHONE("Windows Phone"),
|
||||
LINUX("Linux");
|
||||
|
||||
private static final DeviceOs[] VALUES = values();
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2019-2024 GeyserMC. http://geysermc.org
|
||||
* Copyright (c) 2019-2022 GeyserMC. http://geysermc.org
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* 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.
|
||||
// https://bugs.mojang.com/browse/MCPE-89115
|
||||
if (session.getClientData().getDeviceOs() == DeviceOs.XBOX
|
||||
|| session.getClientData().getDeviceOs() == DeviceOs.SONY) {
|
||||
|| session.getClientData().getDeviceOs() == DeviceOs.PS4) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren