Skip to content

Commit

Permalink
Merge branch 'IntellectualSites:main' into feature/thread-friendly-co…
Browse files Browse the repository at this point in the history
…mmand
  • Loading branch information
szumielxd authored Jan 28, 2025
2 parents 8bbbb4b + 974c639 commit 9b89383
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Core/src/main/java/com/plotsquared/core/command/Music.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ public class Music extends SubCommand {
"music_disc_creator_music_box", "music_disc_precipice"
);

// make sure all discs and the bedrock ("cancel") fit into the inventory
private static final int INVENTORY_ROWS = (int) Math.ceil((DISCS.size() + 1) / 9.0);

private final InventoryUtil inventoryUtil;
private final EventDispatcher eventDispatcher;

Expand Down Expand Up @@ -94,7 +97,7 @@ public boolean onCommand(PlotPlayer<?> player, String[] args) {
PlotInventory inv = new PlotInventory(
this.inventoryUtil,
player,
2,
INVENTORY_ROWS,
TranslatableCaption.of("plotjukebox.jukebox_header").getComponent(player)
) {
@Override
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down

0 comments on commit 9b89383

Please sign in to comment.