Skip to content

Commit

Permalink
Merge pull request #11 from SlimefunGuguProject/feat/update-translati…
Browse files Browse the repository at this point in the history
…on-api

feat: update SlimefunTranslation integration
  • Loading branch information
SchnTgaiSpock authored Feb 27, 2024
2 parents 5ff54da + 3fb8870 commit a88a2eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@
<dependency>
<groupId>net.guizhanss</groupId>
<artifactId>SlimefunTranslation</artifactId>
<version>ce9fb1c6f5</version>
<version>81b930d5ad</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import io.github.schntgaispock.slimehud.SlimeHUD;
import io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem;
import net.guizhanss.slimefuntranslation.SlimefunTranslation;
import net.guizhanss.slimefuntranslation.api.SlimefunTranslationAPI;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;

Expand Down Expand Up @@ -31,9 +31,7 @@ public String getItemName(Player p, SlimefunItem sfItem) {
}

try {
return SlimefunTranslation.getTranslationService().getTranslatedItemName(
SlimefunTranslation.getUserService().getUser(p),
sfItem);
return SlimefunTranslationAPI.getItemName(SlimefunTranslationAPI.getUser(p), sfItem);
} catch (NoClassDefFoundError e) {
SlimeHUD.getInstance().getLogger().info("Could not get item translation! Please update SlimefunTranslation");
translationEnabled = false;
Expand Down

0 comments on commit a88a2eb

Please sign in to comment.