aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/dev/mayaqq/ygasi/events
diff options
context:
space:
mode:
authorMaximusbarcz <maxim.baranek@gmail.com>2023-01-16 18:34:34 +0100
committerMaximusbarcz <maxim.baranek@gmail.com>2023-01-16 18:34:34 +0100
commitf7770f7e2b6d3029b207d8e574a9bb63b10a2651 (patch)
tree1204cf4b609666811955e3993522728fe408e4c6 /src/main/java/dev/mayaqq/ygasi/events
parent290ad0d1d979431fe8bfda966013a8de7b77a7fd (diff)
downloadygasi-f7770f7e2b6d3029b207d8e574a9bb63b10a2651.tar.gz
ygasi-f7770f7e2b6d3029b207d8e574a9bb63b10a2651.tar.bz2
ygasi-f7770f7e2b6d3029b207d8e574a9bb63b10a2651.zip
Improved Reset function, added more translations, added more features to AdvUtils, added more stuff to gui common (now you cannot accidentally click higher skill than the before making you lose skill points), made the entries in the main gui display a barrier because they will be done later after the first public beta release, tried and fail to improve PlayerConnectEvent and thats about it
Diffstat (limited to 'src/main/java/dev/mayaqq/ygasi/events')
-rw-r--r--src/main/java/dev/mayaqq/ygasi/events/PlayerConnectEvent.java3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/main/java/dev/mayaqq/ygasi/events/PlayerConnectEvent.java b/src/main/java/dev/mayaqq/ygasi/events/PlayerConnectEvent.java
index 52b3047..97cd225 100644
--- a/src/main/java/dev/mayaqq/ygasi/events/PlayerConnectEvent.java
+++ b/src/main/java/dev/mayaqq/ygasi/events/PlayerConnectEvent.java
@@ -1,10 +1,8 @@
package dev.mayaqq.ygasi.events;
import dev.mayaqq.ygasi.registry.ConfigRegistry;
-import dev.mayaqq.ygasi.util.AdvUtils;
import net.fabricmc.fabric.api.networking.v1.ServerPlayConnectionEvents;
import net.minecraft.item.ItemStack;
-import net.minecraft.util.Identifier;
import static dev.mayaqq.ygasi.registry.ItemRegistry.SKILL_BOOK;
@@ -15,7 +13,6 @@ public class PlayerConnectEvent {
if (!handler.player.getScoreboardTags().contains("skill_book_unlocked") && ConfigRegistry.CONFIG.enableSkillBook) {
handler.player.addScoreboardTag("skill_book_unlocked");
handler.player.getInventory().offerOrDrop(new ItemStack(SKILL_BOOK));
- AdvUtils.grantAdvancementCriterion(handler.player, new Identifier("ygasi", "recipes/minecraft_ygasi/skill_book"), "opened_skill_menu");
}
});
}