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

Add example issue to Inventory#getBedrockId

Dieser Commit ist enthalten in:
Camotoy 2022-08-29 12:30:16 -04:00
Ursprung 94d56f04bb
Commit d9db035d95
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 7EEFB66FE798081F

Datei anzeigen

@ -106,6 +106,7 @@ public abstract class Inventory {
// This is to prevent conflicts with special bedrock inventory IDs.
// The vanilla java server only sends an ID between 1 and 100 when opening an inventory,
// so this is rarely needed. (certain plugins)
// Example: https://github.com/GeyserMC/Geyser/issues/3254
public int getBedrockId() {
return javaId <= 100 ? javaId : (javaId % 100) + 1;
}