diff options
author | Maximusbarcz <maxim.baranek@gmail.com> | 2022-10-12 19:30:13 +0200 |
---|---|---|
committer | Maximusbarcz <maxim.baranek@gmail.com> | 2022-10-12 19:30:13 +0200 |
commit | 11e5e2ddc52c8db91738204afef06d8a93b0f986 (patch) | |
tree | 48e2f4352ec08474444a1c3be6f335452b97c17a /src/main/java/dev/mayaqq/ygasi/mixin | |
parent | 445a582dd86896145eed4b4c3443cd627794703a (diff) | |
download | ygasi-11e5e2ddc52c8db91738204afef06d8a93b0f986.tar.gz ygasi-11e5e2ddc52c8db91738204afef06d8a93b0f986.tar.bz2 ygasi-11e5e2ddc52c8db91738204afef06d8a93b0f986.zip |
Just some messing around... Mainly commiting this if I mess up moving my IntelliJ Instalation
Diffstat (limited to 'src/main/java/dev/mayaqq/ygasi/mixin')
-rw-r--r-- | src/main/java/dev/mayaqq/ygasi/mixin/AdvancementRewardsMixin.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/dev/mayaqq/ygasi/mixin/AdvancementRewardsMixin.java b/src/main/java/dev/mayaqq/ygasi/mixin/AdvancementRewardsMixin.java index ad90451..444ecb8 100644 --- a/src/main/java/dev/mayaqq/ygasi/mixin/AdvancementRewardsMixin.java +++ b/src/main/java/dev/mayaqq/ygasi/mixin/AdvancementRewardsMixin.java @@ -1,6 +1,6 @@ package dev.mayaqq.ygasi.mixin; -import dev.mayaqq.ygasi.config.ConfigData; +import dev.mayaqq.ygasi.registry.ConfigRegistry; import net.minecraft.advancement.AdvancementRewards; import net.minecraft.server.network.ServerPlayerEntity; import net.minecraft.util.Identifier; @@ -21,8 +21,7 @@ public class AdvancementRewardsMixin { @Inject(method = "apply",at = @At("HEAD")) private void inject(ServerPlayerEntity player, CallbackInfo ci) { if (recipes.length == 0) { - LOGGER.info("Skill point unlocked"); - player.increaseStat(SKILL_POINTS, 1); + player.increaseStat(SKILL_POINTS, ConfigRegistry.CONFIG.pointsRewarded); } } } |