mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-01 12:42:05 -07:00
net.minecraft.world.level.storage.loot.predicates
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
--- a/net/minecraft/world/level/storage/loot/predicates/ExplosionCondition.java
|
--- a/net/minecraft/world/level/storage/loot/predicates/ExplosionCondition.java
|
||||||
+++ b/net/minecraft/world/level/storage/loot/predicates/ExplosionCondition.java
|
+++ b/net/minecraft/world/level/storage/loot/predicates/ExplosionCondition.java
|
||||||
@@ -31,7 +31,8 @@
|
@@ -30,7 +_,8 @@
|
||||||
RandomSource randomsource = loottableinfo.getRandom();
|
if (_float != null) {
|
||||||
float f = 1.0F / ofloat;
|
RandomSource random = context.getRandom();
|
||||||
|
float f = 1.0F / _float;
|
||||||
- return randomsource.nextFloat() <= f;
|
- return random.nextFloat() <= f;
|
||||||
+ // CraftBukkit - <= to < to allow for plugins to completely disable block drops from explosions
|
+ // CraftBukkit - <= to < to allow for plugins to completely disable block drops from explosions
|
||||||
+ return randomsource.nextFloat() < f;
|
+ return random.nextFloat() < f;
|
||||||
} else {
|
} else {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
Reference in New Issue
Block a user