mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Add example issue to Inventory#getBedrockId
This commit is contained in:
parent
94d56f04bb
commit
d9db035d95
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue