Restore PotionShiftEvent (#6042)
This commit is contained in:
parent
c83d4d29e4
commit
d5e20b13b9
1 changed files with 10 additions and 2 deletions
|
@ -1,6 +1,14 @@
|
||||||
--- a/net/minecraft/client/gui/DisplayEffectsScreen.java
|
--- a/net/minecraft/client/gui/DisplayEffectsScreen.java
|
||||||
+++ b/net/minecraft/client/gui/DisplayEffectsScreen.java
|
+++ b/net/minecraft/client/gui/DisplayEffectsScreen.java
|
||||||
@@ -84,6 +84,7 @@
|
@@ -34,6 +34,7 @@
|
||||||
|
this.field_147003_i = (this.width - this.field_146999_f) / 2;
|
||||||
|
this.field_147045_u = false;
|
||||||
|
} else {
|
||||||
|
+ if (net.minecraftforge.common.MinecraftForge.EVENT_BUS.post(new net.minecraftforge.client.event.GuiScreenEvent.PotionShiftEvent(this))) this.field_147003_i = (this.width - this.field_146999_f) / 2; else
|
||||||
|
this.field_147003_i = 160 + (this.width - this.field_146999_f - 200) / 2;
|
||||||
|
this.field_147045_u = true;
|
||||||
|
}
|
||||||
|
@@ -84,6 +85,7 @@
|
||||||
int i = this.field_147009_r;
|
int i = this.field_147009_r;
|
||||||
|
|
||||||
for(EffectInstance effectinstance : p_214077_3_) {
|
for(EffectInstance effectinstance : p_214077_3_) {
|
||||||
|
@ -8,7 +16,7 @@
|
||||||
Effect effect = effectinstance.func_188419_a();
|
Effect effect = effectinstance.func_188419_a();
|
||||||
blit(p_214077_1_ + 6, i + 7, this.blitOffset, 18, 18, potionspriteuploader.func_215288_a(effect));
|
blit(p_214077_1_ + 6, i + 7, this.blitOffset, 18, 18, potionspriteuploader.func_215288_a(effect));
|
||||||
i += p_214077_2_;
|
i += p_214077_2_;
|
||||||
@@ -95,6 +96,9 @@
|
@@ -95,6 +97,9 @@
|
||||||
int i = this.field_147009_r;
|
int i = this.field_147009_r;
|
||||||
|
|
||||||
for(EffectInstance effectinstance : p_214078_3_) {
|
for(EffectInstance effectinstance : p_214078_3_) {
|
||||||
|
|
Loading…
Reference in a new issue