2023-07-01 20:21:13 +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
|
2024-04-16 03:24:44 +00:00
|
|
|
index 637478fd8a284e6833cf8f5fa17ccf9d73d1dd3f..aec4991e8bd75c0020029008951e4cc2a83ed2b2 100644
|
2023-07-01 20:21:13 +00:00
|
|
|
--- a/src/main/java/net/minecraft/world/entity/Entity.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/entity/Entity.java
|
2024-04-16 03:24:44 +00:00
|
|
|
@@ -4755,7 +4755,7 @@ public abstract class Entity implements Nameable, EntityAccess, CommandSource, S
|
2023-07-01 20:21:13 +00:00
|
|
|
|
|
|
|
public void setXRot(float pitch) {
|
|
|
|
if (!Float.isFinite(pitch)) {
|
|
|
|
- Util.logAndPauseIfInIde("Invalid entity rotation: " + pitch + ", discarding.");
|
|
|
|
+ // Scissors - Patch invalid entity rotation log spam
|
|
|
|
} else {
|
|
|
|
this.xRot = pitch;
|
|
|
|
}
|