Remove OnlyIn Client Distribution from Effect and EffectType methods. (#5925)

This commit is contained in:
CJ Miller 2019-07-18 14:15:31 -07:00 committed by LexManos
parent cb21e95e0b
commit 9f5ce12754
2 changed files with 27 additions and 1 deletions

View File

@ -9,7 +9,15 @@
private final Map<IAttribute, AttributeModifier> field_111188_I = Maps.newHashMap();
private final EffectType field_220305_b;
private final int field_76414_N;
@@ -149,7 +149,6 @@
@@ -134,7 +134,6 @@
return new TranslationTextComponent(this.func_76393_a());
}
- @OnlyIn(Dist.CLIENT)
public EffectType func_220303_e() {
return this.field_220305_b;
}
@@ -149,7 +148,6 @@
return this;
}
@ -17,3 +25,11 @@
public Map<IAttribute, AttributeModifier> func_111186_k() {
return this.field_111188_I;
}
@@ -180,7 +178,6 @@
return p_111183_2_.func_111164_d() * (double)(p_111183_1_ + 1);
}
- @OnlyIn(Dist.CLIENT)
public boolean func_188408_i() {
return this.field_220305_b == EffectType.BENEFICIAL;
}

View File

@ -0,0 +1,10 @@
--- a/net/minecraft/potion/EffectType.java
+++ b/net/minecraft/potion/EffectType.java
@@ -15,7 +15,6 @@
this.field_220307_d = p_i50390_3_;
}
- @OnlyIn(Dist.CLIENT)
public TextFormatting func_220306_a() {
return this.field_220307_d;
}