Skip to content

Commit

Permalink
♻️ 代码调整
Browse files Browse the repository at this point in the history
  • Loading branch information
1024-byteeeee committed Nov 19, 2023
1 parent 1e238f0 commit 3356f29
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public void size(CallbackInfoReturnable<Integer> cir) {
@Inject(method = "getAvailableSlots", at = @At("HEAD"), cancellable = true)
public void getAvailableSlots(Direction side, CallbackInfoReturnable<int[]> cir) {
if (AmsServerSettings.largeShulkerBox) {
int[] availableSlots = IntStream.range(0, 9 * 6).toArray();
int[] availableSlots = IntStream.range(0, size()).toArray();
cir.setReturnValue(availableSlots);
cir.cancel();
}
Expand Down

0 comments on commit 3356f29

Please sign in to comment.