mirror of
https://github.com/AtlasMediaGroup/Scissors.git
synced 2024-11-16 10:36:11 +00:00
65d7993679
* First pass * Second and final pass * Update Jenkinsfile
29 lines
1.3 KiB
Diff
29 lines
1.3 KiB
Diff
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
|
|
index ade4ed2f219d32050a372283eaebe75f9014ec78..88d119605eba1b59fad431d94882f054f0074b80 100644
|
|
--- a/src/main/java/net/minecraft/world/entity/Entity.java
|
|
+++ b/src/main/java/net/minecraft/world/entity/Entity.java
|
|
@@ -4482,7 +4482,7 @@ public abstract class Entity implements Nameable, EntityAccess, CommandSource {
|
|
|
|
public void setYRot(float yaw) {
|
|
if (!Float.isFinite(yaw)) {
|
|
- Util.logAndPauseIfInIde("Invalid entity rotation: " + yaw + ", discarding.");
|
|
+ // Scissors - Patch invalid entity rotation log spam
|
|
} else {
|
|
this.yRot = yaw;
|
|
}
|
|
@@ -4494,7 +4494,7 @@ public abstract class Entity implements Nameable, EntityAccess, CommandSource {
|
|
|
|
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;
|
|
}
|