mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
fixed annoying splash appearing more than once
This commit is contained in:
parent
e035b20dd3
commit
d4084ae87f
@ -129,8 +129,11 @@ public class ModEventHandlerClient {
|
|||||||
HbmAnimations.hotbar[i] = null;
|
HbmAnimations.hotbar[i] = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(event.type == ElementType.CROSSHAIRS && player.ticksExisted < 200) {
|
if(event.type == ElementType.CROSSHAIRS) {
|
||||||
|
|
||||||
|
if(player.ticksExisted < 200) {
|
||||||
|
|
||||||
|
if(annoyanceToken) {
|
||||||
FontRenderer font = Minecraft.getMinecraft().fontRenderer;
|
FontRenderer font = Minecraft.getMinecraft().fontRenderer;
|
||||||
|
|
||||||
ScaledResolution resolution = event.resolution;
|
ScaledResolution resolution = event.resolution;
|
||||||
@ -148,7 +151,16 @@ public class ModEventHandlerClient {
|
|||||||
msg = "FOR THE LOVE OF GOD";
|
msg = "FOR THE LOVE OF GOD";
|
||||||
if(player.ticksExisted > 120) font.drawStringWithShadow(msg, pX - font.getStringWidth(msg) / 2, pZ + 40, 0xb00000);
|
if(player.ticksExisted > 120) font.drawStringWithShadow(msg, pX - font.getStringWidth(msg) / 2, pZ + 40, 0xb00000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
if(annoyanceToken)
|
||||||
|
annoyanceToken = false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static boolean annoyanceToken = true;
|
||||||
|
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public void preRenderEvent(RenderPlayerEvent.Pre event) {
|
public void preRenderEvent(RenderPlayerEvent.Pre event) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user