Compare commits
2 commits
74d9133c19
...
1ec4da14f3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1ec4da14f3 | ||
|
|
5a078a2c0a |
|
|
@ -12,6 +12,7 @@ import org.spongepowered.asm.mixin.Mixin;
|
|||
import org.spongepowered.asm.mixin.Shadow;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
import org.spongepowered.asm.mixin.injection.Inject;
|
||||
import org.spongepowered.asm.mixin.injection.ModifyVariable;
|
||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
||||
|
||||
|
|
@ -40,4 +41,8 @@ public abstract class PlayerTweaks extends LivingEntity {
|
|||
cir.setReturnValue(false);
|
||||
}
|
||||
}
|
||||
|
||||
// Lose no XP for levelling up
|
||||
@ModifyVariable(method = "onEnchantmentPerformed", at = @At("HEAD"), ordinal = 0, argsOnly = true)
|
||||
private int onEnchantmentPerformed(int i){return 0;}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue