Skip to content

Commit

Permalink
Revert canceling rest when player is damaged
Browse files Browse the repository at this point in the history
  • Loading branch information
friedkeenan committed Oct 23, 2023
1 parent 989b8e7 commit 5cf08d0
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import net.minecraft.network.syncher.EntityDataAccessor;
import net.minecraft.network.syncher.EntityDataSerializers;
import net.minecraft.network.syncher.SynchedEntityData;
import net.minecraft.world.damagesource.DamageSource;
import net.minecraft.world.entity.EntityType;
import net.minecraft.world.entity.LivingEntity;
import net.minecraft.world.entity.player.Player;
Expand Down Expand Up @@ -103,13 +102,6 @@ private void validateResting(CallbackInfo info) {
}
}

@Inject(at = @At("TAIL"), method = "actuallyHurt")
private void makeDamageStopResting(DamageSource source, float damage, CallbackInfo info) {
if (this.isResting()) {
this.stopResting(true);
}
}

@WrapOperation(
at = @At(
value = "INVOKE",
Expand Down

This file was deleted.

1 change: 0 additions & 1 deletion src/main/resources/chronopyre.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"mixins": [
"AddRestingToPlayer",
"SpecializeRestingForServerPlayer",
"SpecializeRestingForLocalPlayer",
"HijackStopSleepPacket",
"SpeedTimeUpWhenResting",
"RestAtCampfire",
Expand Down

0 comments on commit 5cf08d0

Please sign in to comment.