Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-03 14:50:19 +01:00
Fixed unusable space being off by 1 (#561)
Dieser Commit ist enthalten in:
Ursprung
919af5203d
Commit
2830756a55
@ -48,7 +48,7 @@ public class ChestInventoryUpdater extends InventoryUpdater {
|
|||||||
|
|
||||||
ItemData[] bedrockItems = new ItemData[paddedSize];
|
ItemData[] bedrockItems = new ItemData[paddedSize];
|
||||||
for (int i = 0; i < bedrockItems.length; i++) {
|
for (int i = 0; i < bedrockItems.length; i++) {
|
||||||
if (i <= translator.size) {
|
if (i < translator.size) {
|
||||||
bedrockItems[i] = Translators.getItemTranslator().translateToBedrock(session, inventory.getItem(i));
|
bedrockItems[i] = Translators.getItemTranslator().translateToBedrock(session, inventory.getItem(i));
|
||||||
} else {
|
} else {
|
||||||
bedrockItems[i] = UNUSUABLE_SPACE_BLOCK;
|
bedrockItems[i] = UNUSUABLE_SPACE_BLOCK;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren