mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-22 05:02:18 +00:00
Delete LootItemRandomChanceCondition which added looting bonus enchantment incorrectly. (#8733)
This commit is contained in:
1 parent
3aa99a1250
commit
50ae5db357
1 file changed
-12
-12
@@ -1,12 +0,0 @@
|
||||
--- a/net/minecraft/world/level/storage/loot/predicates/LootItemRandomChanceCondition.java
|
||||
+++ b/net/minecraft/world/level/storage/loot/predicates/LootItemRandomChanceCondition.java
|
||||
@@ -18,7 +_,8 @@
|
||||
}
|
||||
|
||||
public boolean test(LootContext p_81930_) {
|
||||
- return p_81930_.m_230907_().m_188501_() < this.f_81921_;
|
||||
+ int i = p_81930_.getLootingModifier();
|
||||
+ return p_81930_.m_230907_().m_188501_() < this.f_81921_ + (float) i;
|
||||
}
|
||||
|
||||
public static LootItemCondition.Builder m_81927_(float p_81928_) {
|
||||
Reference in new issue
Block a user