diff --git a/CHANGELOG.md b/CHANGELOG.md index 933c5a6..e510cd3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,9 @@ -# devel +# 3.13.0.0 Many thanks to @xyzminecraftserver for sponsoring the project! +This release is only rudimentarily tested since I am not currently playing the pack. Please report any issues you run into. + * Updated dependencies for Vault Hunters 3.13. # 3.12.4.0 (2023-11-19) diff --git a/src/main/java/tv/alterNERD/VaultModTweaks/integration/mixin/MixinPlayerExpertisesData.java b/src/main/java/tv/alterNERD/VaultModTweaks/integration/mixin/MixinPlayerExpertisesData.java new file mode 100644 index 0000000..5fbd33f --- /dev/null +++ b/src/main/java/tv/alterNERD/VaultModTweaks/integration/mixin/MixinPlayerExpertisesData.java @@ -0,0 +1,42 @@ +/** + * Copyright 2023 alterNERDtive. + * + * This file is part of Vault Mod Tweaks. + * + * Vault Mod Tweaks is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Vault Mod Tweaks is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * You should have received a copy of the GNU General Public License + * along with Vault Mod Tweaks. If not, see . + */ +package tv.alterNERD.VaultModTweaks.integration.mixin; + +import java.util.UUID; + +import org.spongepowered.asm.mixin.Mixin; +import org.spongepowered.asm.mixin.Overwrite; +import org.spongepowered.asm.mixin.Shadow; +import iskallia.vault.skill.tree.ExpertiseTree; +import iskallia.vault.world.data.PlayerExpertisesData; +import net.minecraft.world.entity.player.Player; + +@Mixin(PlayerExpertisesData.class) +public abstract class MixinPlayerExpertisesData { + @Overwrite(remap=false) + ExpertiseTree getExpertises(Player player) { + // SkillContext.of(player) + // something something LearnableSkill.learn(context) auf den Expertise skill für jeweler + return this.getExpertises(player.getUUID()); + } + + @Shadow(remap=false) + ExpertiseTree getExpertises(UUID uuid) { + return null; + } +}