forked from GeyserMC/Geyser
Fixed unusable space being off by 1 (#561)
This commit is contained in:
parent
919af5203d
commit
2830756a55
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ public class ChestInventoryUpdater extends InventoryUpdater {
|
|||
|
||||
ItemData[] bedrockItems = new ItemData[paddedSize];
|
||||
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));
|
||||
} else {
|
||||
bedrockItems[i] = UNUSUABLE_SPACE_BLOCK;
|
||||
|
|
Loading…
Reference in a new issue