Skip to content

Commit

Permalink
Super secret things
Browse files Browse the repository at this point in the history
  • Loading branch information
Slotterleet committed Apr 1, 2024
1 parent 8014205 commit e7418d5
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/fos/core/FOSMod.java
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,12 @@ public void init() {
}

public void clientLoaded() {
if (!Vars.mobile) {
boolean isAprilFools = FOSVars.date.get(Calendar.MONTH) == Calendar.APRIL && FOSVars.date.get(Calendar.DAY_OF_MONTH) == 1;
if (isAprilFools || settings.getBool("haha-funny", false)) {
Musics.menu = tree.loadMusic("mistake");
boolean isAprilFools = FOSVars.date.get(Calendar.MONTH) == Calendar.APRIL && FOSVars.date.get(Calendar.DAY_OF_MONTH) == 1;

if (isAprilFools || settings.getBool("haha-funny", false)) {
Musics.menu = tree.loadMusic("mistake");

if (!Vars.mobile) {
Events.on(EventType.BlockBuildEndEvent.class, e -> {
if (Mathf.chance(0.005f))
superSecretThings();
Expand Down Expand Up @@ -322,6 +323,8 @@ public void addEditorTeams() {
}

void superSecretThings() {
if (mobile) return;

Log.debug("april fool");

Seq<ApplicationListener> listeners = Reflect.invoke(app, "getListeners");
Expand Down

0 comments on commit e7418d5

Please sign in to comment.