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); }