Skip to content

Commit 651c372

Browse files
committed
fix: use the correct probability to get special ores with nosam pickaxes
1 parent 9c62324 commit 651c372

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/me/voper/slimeframe/implementation/items/tools

1 file changed

+1
-1
lines changed

src/main/java/me/voper/slimeframe/implementation/items/tools/NosamPick.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public ToolUseHandler getItemHandler() {
4949
int probability = getProbability(specialOre);
5050
int random = ThreadLocalRandom.current().nextInt(100) + 1;
5151

52-
if (random > probability) {
52+
if (random <= probability) {
5353
b.getWorld().dropItemNaturally(b.getLocation(), specialOre.getItem().clone());
5454
}
5555
});

0 commit comments

Comments
 (0)