Skip to content

Commit

Permalink
update dependencies, slimehud 1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
SchnTgaiSpock committed Aug 28, 2024
1 parent 1be80be commit be9deb0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 20 deletions.
20 changes: 5 additions & 15 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.github.schntgaispock.gastronomicon</groupId>
<artifactId>Gastronomicon</artifactId>
<version>1.1.1</version>
<version>1.1.2</version>

<properties>
<maven.compiler.source>17</maven.compiler.source>
Expand Down Expand Up @@ -50,7 +50,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.3.0</version>
<version>3.5.1</version>
<configuration>
<minimizeJar>true</minimizeJar>
<relocations>
Expand Down Expand Up @@ -95,7 +95,7 @@
<dependency>
<groupId>com.github.Slimefun</groupId>
<artifactId>Slimefun4</artifactId>
<version>RC-36</version>
<version>RC-37</version>
<scope>provided</scope>
<exclusions>
<exclusion>
Expand All @@ -108,7 +108,7 @@
<dependency>
<groupId>com.github.schntgaispock</groupId>
<artifactId>SlimeHUD</artifactId>
<version>1.2.4</version>
<version>1.3.0</version>
<scope>provided</scope>
</dependency>

Expand All @@ -126,39 +126,29 @@
<scope>provided</scope>
</dependency>

<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<version>1.3.2</version>
<scope>compile</scope>
</dependency>

<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
<version>3.0.2</version>
<scope>compile</scope>
</dependency>

<dependency>
<groupId>org.bstats</groupId>
<artifactId>bstats-bukkit</artifactId>
<version>3.0.0</version>
<version>3.0.2</version>
<scope>compile</scope>
</dependency>

<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.13.4.2</version>
<scope>compile</scope>
</dependency>

<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>2.13.3</version>
<scope>compile</scope>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,23 @@ public static void setup() {
final BlockMenu menu = BlockStorage.getInventory(request.getLocation());
if (menu == null) return "";
final ItemStack item = menu.getItemInSlot(15);
if (item == null) return "&7| No android";
if (item == null) return "&7No android";
final SlimefunItem sfItem = SlimefunItem.getByItem(item);
if (sfItem == null || !sfItem.getId().equals("GN_CHEF_ANDROID")) return "&7| No android";
if (sfItem == null || !sfItem.getId().equals("GN_CHEF_ANDROID")) return "&7No android";
final List<String> lore = item.getLore();
if (lore == null || lore.size() < 1) return "";
return "&7| " + lore.get(0);
return "&7" + lore.get(0);
});

// Fishing Net
SlimeHUD.getHudController().registerCustomHandler(FishingNet.class, request -> {
return ((FishingNet) request.getSlimefunItem()).getMachineProcessor().getOperation(request.getLocation()) == null ? "&7| Not in water" : "";
return ((FishingNet) request.getSlimefunItem()).getMachineProcessor().getOperation(request.getLocation()) == null ? "&7Not in water" : "";
});

// Fermenter
SlimeHUD.getHudController().registerCustomHandler(Fermenter.class, request -> {
final Fermenter fermenter = (Fermenter) request.getSlimefunItem();
return "&7| &9🪣 &7" + ChunkPDC.getOrCreateDefault(request.getLocation().getBlock(), GastroKeys.FERMENTER_WATER, 0) + "/" + fermenter.getCapacity() + " mB";
return "&7&9🪣 &7" + ChunkPDC.getOrCreateDefault(request.getLocation().getBlock(), GastroKeys.FERMENTER_WATER, 0) + "/" + fermenter.getCapacity() + " mB";
});
}

Expand Down

0 comments on commit be9deb0

Please sign in to comment.