From 07c406aa1615cf08e0e0e74cba284c4e47a3e2d7 Mon Sep 17 00:00:00 2001 From: Babbaj Date: Sun, 23 Feb 2020 21:48:15 -0500 Subject: [PATCH 1/2] baritoe --- src/api/java/baritone/api/utils/Helper.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/api/java/baritone/api/utils/Helper.java b/src/api/java/baritone/api/utils/Helper.java index 994d8c7b..2f821a39 100755 --- a/src/api/java/baritone/api/utils/Helper.java +++ b/src/api/java/baritone/api/utils/Helper.java @@ -24,6 +24,7 @@ import net.minecraft.util.text.TextComponentString; import net.minecraft.util.text.TextFormatting; import java.util.Arrays; +import java.util.Calendar; import java.util.stream.Stream; /** @@ -47,7 +48,9 @@ public interface Helper { static ITextComponent getPrefix() { // Inner text component - ITextComponent baritone = new TextComponentString(BaritoneAPI.getSettings().shortBaritonePrefix.value ? "B" : "Baritone"); + final Calendar now = Calendar.getInstance(); + final boolean xd = now.get(Calendar.MONTH) == Calendar.APRIL && now.get(Calendar.DAY_OF_MONTH) == 1; + ITextComponent baritone = new TextComponentString(BaritoneAPI.getSettings().shortBaritonePrefix.value ? "B" : (xd ? "Baritoe" : "Baritone")); baritone.getStyle().setColor(TextFormatting.LIGHT_PURPLE); // Outer brackets From ee33666b38eb2207f1f739dc30a9307603740643 Mon Sep 17 00:00:00 2001 From: Babbaj Date: Sun, 23 Feb 2020 21:54:18 -0500 Subject: [PATCH 2/2] 3 days --- src/api/java/baritone/api/utils/Helper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/java/baritone/api/utils/Helper.java b/src/api/java/baritone/api/utils/Helper.java index 2f821a39..7e85725f 100755 --- a/src/api/java/baritone/api/utils/Helper.java +++ b/src/api/java/baritone/api/utils/Helper.java @@ -49,7 +49,7 @@ public interface Helper { static ITextComponent getPrefix() { // Inner text component final Calendar now = Calendar.getInstance(); - final boolean xd = now.get(Calendar.MONTH) == Calendar.APRIL && now.get(Calendar.DAY_OF_MONTH) == 1; + final boolean xd = now.get(Calendar.MONTH) == Calendar.APRIL && now.get(Calendar.DAY_OF_MONTH) <= 3; ITextComponent baritone = new TextComponentString(BaritoneAPI.getSettings().shortBaritonePrefix.value ? "B" : (xd ? "Baritoe" : "Baritone")); baritone.getStyle().setColor(TextFormatting.LIGHT_PURPLE);