fix clumps incompability

This commit is contained in:
Flemmli97 2022-02-23 00:06:07 +01:00
parent 25f25af640
commit 174d6b64f0
3 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,7 @@
Flan 1.7.2
================
- Internal changes
- Fabric: Fix Clumps incompability with xp permission
Flan 1.7.1
======================

View File

@ -16,7 +16,7 @@ public abstract class WitherMixin {
@Inject(method = "customServerAiStep", at = @At(value = "HEAD"))
private void preventClaimDmg(CallbackInfo info) {
if (!EntityInteractEvents.witherCanDestroy((WitherBoss) (Object) this))
if (this.destroyBlocksTick > 0 && !EntityInteractEvents.witherCanDestroy((WitherBoss) (Object) this))
this.destroyBlocksTick = -1;
}
}

View File

@ -8,7 +8,7 @@ import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
@Mixin(ExperienceOrb.class)
@Mixin(value = ExperienceOrb.class, priority = 100)
public abstract class XpEntityMixin {
@Inject(method = "playerTouch", at = @At(value = "HEAD"), cancellable = true)