Skip to content

Commit

Permalink
fix totem drop chances always being exactly 0 or 1
Browse files Browse the repository at this point in the history
  • Loading branch information
YouHaveTrouble committed Nov 17, 2024
1 parent 775aacb commit 1c1286d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ dependencies {
}

group = "org.purpurmc.purpurextras"
version = "1.34.3"
version = "1.34.4"
description = "\"This should be a plugin\" features from Purpur"
java.sourceCompatibility = JavaVersion.VERSION_21
java.targetCompatibility = JavaVersion.VERSION_21
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@
public class RaidTotemDropsModule implements PurpurExtrasModule, Listener {

private final SplittableRandom random;
private final int dropChance;
private final double dropChance;
private final Map<UUID, Raider> raiders = new HashMap<>();

private final ItemStack totem = new ItemStack(Material.TOTEM_OF_UNDYING);

protected RaidTotemDropsModule() {
dropChance = PurpurExtras.getPurpurConfig().getInt("settings.raid-totem-drops.chance", 0);
dropChance = PurpurExtras.getPurpurConfig().getDouble("settings.raid-totem-drops.chance", 0);
random = new SplittableRandom();
}

Expand Down

0 comments on commit 1c1286d

Please sign in to comment.