From 76a144186f1fa0ce393ee1a83f4e2e8fdee8d8eb Mon Sep 17 00:00:00 2001 From: degr8pheonix Date: Sat, 19 Oct 2024 07:30:06 +1000 Subject: [PATCH] Fixed listener issue for main --- .../com/csse3200/game/components/player/PlayerStatsDisplay.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/core/src/main/com/csse3200/game/components/player/PlayerStatsDisplay.java b/source/core/src/main/com/csse3200/game/components/player/PlayerStatsDisplay.java index f4ce2702..f3b65b54 100644 --- a/source/core/src/main/com/csse3200/game/components/player/PlayerStatsDisplay.java +++ b/source/core/src/main/com/csse3200/game/components/player/PlayerStatsDisplay.java @@ -47,7 +47,7 @@ public void create() { entity.getEvents().addListener("updateGold", this::updatePlayerGoldUI); - ServiceLocator.getDayNightService().getEvents().addListener("newday", PlayerStatsDisplay::updateDay); + ServiceLocator.getDayNightService().getEvents().addListener("newday", this::updateDay); ServiceLocator.getDayNightService().getEvents().addListener("Second", PlayerStatsDisplay::updateTime); }