Skip to content

Commit

Permalink
im not very smart, version 3
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePlasticPotato committed Dec 18, 2024
1 parent db4e2a4 commit 8afecc9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package org.valkyrienskies.mod.common.util
import net.minecraft.server.level.ServerPlayer
import net.minecraft.util.Mth
import net.minecraft.world.entity.Entity
import net.minecraft.world.entity.player.Player
import net.minecraft.world.phys.Vec3
import org.joml.Vector3d
import org.joml.Vector3dc
Expand Down Expand Up @@ -121,7 +122,7 @@ object EntityDragger {
entity.yHeadRot = Mth.wrapDegrees(entity.yHeadRot + addedYRot.toFloat())
}
} else {
if (!entity.isControlledByLocalInstance) {
if (!entity.isControlledByLocalInstance && !(entity is Player && entity.isLocalPlayer)) {
entity.yRot = Mth.wrapDegrees(entity.yRot + addedYRot.toFloat())
entity.yHeadRot = Mth.wrapDegrees(entity.yHeadRot + addedYRot.toFloat())
} else {
Expand Down

0 comments on commit 8afecc9

Please sign in to comment.