mirror of
https://github.com/Winds-Studio/Leaf.git
synced 2025-12-27 02:49:19 +00:00
fix Leaf.enableFMA property check too many times
This commit is contained in:
@@ -8,14 +8,14 @@ avoids multiple casting in Entity#distanceTo, using Math#sqrt directly instead o
|
||||
these methods more able to be inlined by the JIT compiler.
|
||||
|
||||
diff --git a/net/minecraft/world/entity/Entity.java b/net/minecraft/world/entity/Entity.java
|
||||
index c44cc7107ff6cf1fd72e222773847deddf05e61c..3a82ed1958a7686191692d9eafdc62b6d5f6fb3c 100644
|
||||
index c44cc7107ff6cf1fd72e222773847deddf05e61c..beb84756c7f875e24ae1561a75db88c001595e58 100644
|
||||
--- a/net/minecraft/world/entity/Entity.java
|
||||
+++ b/net/minecraft/world/entity/Entity.java
|
||||
@@ -394,6 +394,7 @@ public abstract class Entity implements SyncedDataHolder, Nameable, EntityAccess
|
||||
private int sectionY = Integer.MIN_VALUE;
|
||||
private int sectionZ = Integer.MIN_VALUE;
|
||||
private boolean updatingSectionStatus;
|
||||
+ private final boolean enableFMA = Boolean.getBoolean("Leaf.enableFMA"); // Leaf - Optimize Entity distanceTo
|
||||
+ private static final boolean enableFMA = Boolean.getBoolean("Leaf.enableFMA"); // Leaf - Optimize Entity distanceTo
|
||||
|
||||
@Override
|
||||
public final boolean moonrise$isHardColliding() {
|
||||
|
||||
Reference in New Issue
Block a user