From 3f3f1b973ba6d09605b98a93f8a20b675d0070cf Mon Sep 17 00:00:00 2001 From: ybw0014 Date: Tue, 29 Oct 2024 15:36:22 -0700 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A4=AA=E9=98=B3=E8=83=BD=E5=8F=91?= =?UTF-8?q?=E7=94=B5=E6=9C=BA=E8=83=BD=E6=BA=90=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/github/schntgaispock/slimehud/waila/HudController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 f8dd922..3547794 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 {