mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-23 21:49:46 +00:00
68 lines
3.3 KiB
Diff
68 lines
3.3 KiB
Diff
--- ../src-base/minecraft/net/minecraft/potion/PotionHelper.java
|
|
+++ ../src-work/minecraft/net/minecraft/potion/PotionHelper.java
|
|
@@ -88,7 +88,7 @@
|
|
{
|
|
PotionHelper.MixPredicate<Item> mixpredicate = (PotionHelper.MixPredicate)field_185214_b.get(i);
|
|
|
|
- if (mixpredicate.field_185198_a == item && mixpredicate.field_185199_b.apply(p_185206_1_))
|
|
+ if (mixpredicate.field_185198_a.get() == item && mixpredicate.field_185199_b.apply(p_185206_1_))
|
|
{
|
|
return true;
|
|
}
|
|
@@ -106,7 +106,7 @@
|
|
{
|
|
PotionHelper.MixPredicate<PotionType> mixpredicate = (PotionHelper.MixPredicate)field_185213_a.get(i);
|
|
|
|
- if (mixpredicate.field_185198_a == potiontype && mixpredicate.field_185199_b.apply(p_185209_1_))
|
|
+ if (mixpredicate.field_185198_a.get() == potiontype && mixpredicate.field_185199_b.apply(p_185209_1_))
|
|
{
|
|
return true;
|
|
}
|
|
@@ -127,9 +127,9 @@
|
|
{
|
|
PotionHelper.MixPredicate<Item> mixpredicate = (PotionHelper.MixPredicate)field_185214_b.get(i);
|
|
|
|
- if (mixpredicate.field_185198_a == item && mixpredicate.field_185199_b.apply(p_185212_0_))
|
|
+ if (mixpredicate.field_185198_a.get() == item && mixpredicate.field_185199_b.apply(p_185212_0_))
|
|
{
|
|
- return PotionUtils.func_185188_a(new ItemStack((Item)mixpredicate.field_185200_c), potiontype);
|
|
+ return PotionUtils.func_185188_a(new ItemStack((Item)mixpredicate.field_185200_c.get()), potiontype);
|
|
}
|
|
}
|
|
|
|
@@ -139,9 +139,9 @@
|
|
{
|
|
PotionHelper.MixPredicate<PotionType> mixpredicate1 = (PotionHelper.MixPredicate)field_185213_a.get(i);
|
|
|
|
- if (mixpredicate1.field_185198_a == potiontype && mixpredicate1.field_185199_b.apply(p_185212_0_))
|
|
+ if (mixpredicate1.field_185198_a.get() == potiontype && mixpredicate1.field_185199_b.apply(p_185212_0_))
|
|
{
|
|
- return PotionUtils.func_185188_a(new ItemStack(item), (PotionType)mixpredicate1.field_185200_c);
|
|
+ return PotionUtils.func_185188_a(new ItemStack(item), (PotionType)mixpredicate1.field_185200_c.get());
|
|
}
|
|
}
|
|
}
|
|
@@ -227,17 +227,17 @@
|
|
field_185213_a.add(new PotionHelper.MixPredicate(p_193356_0_, p_193356_1_, p_193356_2_));
|
|
}
|
|
|
|
- static class MixPredicate<T>
|
|
+ static class MixPredicate<T extends net.minecraftforge.registries.IForgeRegistryEntry.Impl<T>>
|
|
{
|
|
- final T field_185198_a;
|
|
+ final net.minecraftforge.registries.IRegistryDelegate<T> field_185198_a;
|
|
final Ingredient field_185199_b;
|
|
- final T field_185200_c;
|
|
+ final net.minecraftforge.registries.IRegistryDelegate<T> field_185200_c;
|
|
|
|
public MixPredicate(T p_i47570_1_, Ingredient p_i47570_2_, T p_i47570_3_)
|
|
{
|
|
- this.field_185198_a = p_i47570_1_;
|
|
+ this.field_185198_a = p_i47570_1_.delegate;
|
|
this.field_185199_b = p_i47570_2_;
|
|
- this.field_185200_c = p_i47570_3_;
|
|
+ this.field_185200_c = p_i47570_3_.delegate;
|
|
}
|
|
}
|
|
}
|