aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/dev/mayaqq/ygasi/gui/ResetGui.java
diff options
context:
space:
mode:
authorMaximusbarcz <maxim.baranek@gmail.com>2023-01-09 21:48:21 +0100
committerMaximusbarcz <maxim.baranek@gmail.com>2023-01-09 21:48:21 +0100
commit5f1004168668f12f41c6deb9f026041373d45ba1 (patch)
treedc8d1d539726347d976ae8a171280ad22a5bd807 /src/main/java/dev/mayaqq/ygasi/gui/ResetGui.java
parentab1ddc8e008ed93392ea3918da1d669dd1b4822c (diff)
downloadygasi-5f1004168668f12f41c6deb9f026041373d45ba1.tar.gz
ygasi-5f1004168668f12f41c6deb9f026041373d45ba1.tar.bz2
ygasi-5f1004168668f12f41c6deb9f026041373d45ba1.zip
Its a frog, frog in a blender! And also other stuff I guess
Diffstat (limited to 'src/main/java/dev/mayaqq/ygasi/gui/ResetGui.java')
-rw-r--r--src/main/java/dev/mayaqq/ygasi/gui/ResetGui.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/dev/mayaqq/ygasi/gui/ResetGui.java b/src/main/java/dev/mayaqq/ygasi/gui/ResetGui.java
index a976929..c581e02 100644
--- a/src/main/java/dev/mayaqq/ygasi/gui/ResetGui.java
+++ b/src/main/java/dev/mayaqq/ygasi/gui/ResetGui.java
@@ -1,6 +1,6 @@
package dev.mayaqq.ygasi.gui;
-import dev.mayaqq.ygasi.util.YgasiUtils;
+import dev.mayaqq.ygasi.util.AdvUtils;
import eu.pb4.sgui.api.elements.GuiElementBuilder;
import net.minecraft.item.Items;
import net.minecraft.screen.ScreenHandlerType;
@@ -48,7 +48,7 @@ public class ResetGui {
player.playSound(SoundEvents.ENTITY_EXPERIENCE_ORB_PICKUP, SoundCategory.PLAYERS, 1.0F, 1.0F);
player.experienceLevel -= 10;
player.closeHandledScreen();
- YgasiUtils.revokeAllAdvancements(player, "minecraft", "ygasi/");
+ AdvUtils.revokeAllAdvancements(player, "minecraft", "ygasi/");
player.sendMessage(Text.translatable("gui.ygasi.reset.success"), false);
player.getStatHandler().setStat(player, Stats.CUSTOM.getOrCreateStat(SKILL_POINTS), player.getStatHandler().getStat(Stats.CUSTOM.getOrCreateStat(SKILL_POINTS_TOTAL)));
BranchGui.gui(player);