Skip to content

Commit

Permalink
PhatLoots v5.6.7
Browse files Browse the repository at this point in the history
- Fix ShuffleLoot config option not working
  • Loading branch information
Redned235 committed Sep 22, 2024
1 parent 30e02a0 commit 4525558
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
val supportedVersions = listOf("1.20", "1.20.1", "1.20.2", "1.20.3", "1.20.4", "1.20.5", "1.20.6", "1.21")

group = "com.codisimus.plugins"
version = "5.6.6"
version = "5.6.7"

java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ public void addItems(Collection<ItemStack> itemList, Player player, Inventory in
for (ItemStack item : itemList) {
addItem(item, player, inventory);
}
if (shuffleLoot) {
if (PhatLootChest.shuffleLoot || shuffleLoot) {
List<ItemStack> contents = Arrays.asList(inventory.getContents());
Collections.shuffle(contents);
inventory.setContents(contents.toArray(new ItemStack[0]));
Expand Down

0 comments on commit 4525558

Please sign in to comment.