Skip to content

Commit

Permalink
Crafting table slot mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
AJ-Ferguson committed Jan 2, 2021
1 parent 7a82852 commit 528a9a4
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,12 @@ public int bedrockSlotToJava(StackRequestSlotInfoData slotInfoData) {
}
return super.bedrockSlotToJava(slotInfoData);
}

@Override
public int javaSlotToBedrock(int slot) {
if (slot < size) {
return slot == 0 ? 50 : slot + 31;
}
return super.javaSlotToBedrock(slot);
}
}

0 comments on commit 528a9a4

Please sign in to comment.