2023-03-20 07:16:58 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Allink <arclicious@vivaldi.net>
|
|
|
|
Date: Mon, 20 Mar 2023 07:04:50 +0000
|
|
|
|
Subject: [PATCH] Patch invalid entity rotation log spam
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/world/entity/Entity.java b/src/main/java/net/minecraft/world/entity/Entity.java
|
2023-07-04 21:10:53 +00:00
|
|
|
index ade4ed2f219d32050a372283eaebe75f9014ec78..88d119605eba1b59fad431d94882f054f0074b80 100644
|
2023-03-20 07:16:58 +00:00
|
|
|
--- a/src/main/java/net/minecraft/world/entity/Entity.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/entity/Entity.java
|
2023-07-04 21:10:53 +00:00
|
|
|
@@ -4482,7 +4482,7 @@ public abstract class Entity implements Nameable, EntityAccess, CommandSource {
|
2023-03-20 07:16:58 +00:00
|
|
|
|
|
|
|
public void setYRot(float yaw) {
|
|
|
|
if (!Float.isFinite(yaw)) {
|
|
|
|
- Util.logAndPauseIfInIde("Invalid entity rotation: " + yaw + ", discarding.");
|
2023-07-04 21:10:53 +00:00
|
|
|
+ // Scissors - Patch invalid entity rotation log spam
|
2023-03-20 07:16:58 +00:00
|
|
|
} else {
|
|
|
|
this.yRot = yaw;
|
|
|
|
}
|
2023-07-04 21:10:53 +00:00
|
|
|
@@ -4494,7 +4494,7 @@ public abstract class Entity implements Nameable, EntityAccess, CommandSource {
|
2023-03-20 07:16:58 +00:00
|
|
|
|
|
|
|
public void setXRot(float pitch) {
|
|
|
|
if (!Float.isFinite(pitch)) {
|
|
|
|
- Util.logAndPauseIfInIde("Invalid entity rotation: " + pitch + ", discarding.");
|
2023-07-04 21:10:53 +00:00
|
|
|
+ // Scissors - Patch invalid entity rotation log spam
|
2023-03-20 07:16:58 +00:00
|
|
|
} else {
|
|
|
|
this.xRot = pitch;
|
|
|
|
}
|