diff --git a/pom.xml b/pom.xml index 9530e50..dc0e6fb 100644 --- a/pom.xml +++ b/pom.xml @@ -95,9 +95,9 @@ - com.github.Slimefun + com.github.SlimefunGuguProject Slimefun4 - RC-36 + 2024.3 provided diff --git a/src/main/java/io/github/schntgaispock/slimehud/waila/HudController.java b/src/main/java/io/github/schntgaispock/slimehud/waila/HudController.java index c105901..d8bc509 100644 --- a/src/main/java/io/github/schntgaispock/slimehud/waila/HudController.java +++ b/src/main/java/io/github/schntgaispock/slimehud/waila/HudController.java @@ -1,5 +1,6 @@ package io.github.schntgaispock.slimehud.waila; +import com.xzavier0722.mc.plugin.slimefun4.storage.controller.SlimefunBlockData; import io.github.schntgaispock.slimehud.SlimeHUD; import io.github.schntgaispock.slimehud.util.HudBuilder; import io.github.schntgaispock.slimehud.util.Util; @@ -151,7 +152,7 @@ private String processSolarGenerator(@Nonnull HudRequest request) { SolarGenerator gen = (SolarGenerator) request.getSlimefunItem(); // Solar Generators dont use any fuel, so it's ok to call getGeneratedOutput - int generation = gen.getGeneratedOutput(request.getLocation(), null); + int generation = gen.getGeneratedOutput(request.getLocation(), (SlimefunBlockData) null); if (generation > 0) { hudText.append(HudBuilder.formatEnergyGenerated(generation)); } else {