Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复太阳能发电机的发电量显示错误 #11

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@
</dependency>

<dependency>
<groupId>com.github.Slimefun</groupId>
<groupId>com.github.SlimefunGuguProject</groupId>
<artifactId>Slimefun4</artifactId>
<version>RC-36</version>
<version>2024.3</version>
<scope>provided</scope>
<exclusions>
<exclusion>
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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 {
Expand Down
Loading