Compare commits

..

No commits in common. "1ec4da14f3d22aa7c96c45ee6725288e63ca9101" and "74d9133c1960f33135bde3b8ec2f6a273809dd71" have entirely different histories.

View file

@ -12,7 +12,6 @@ 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;
@ -41,8 +40,4 @@ 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;}
}