mirror of
https://github.com/Winds-Studio/Leaf.git
synced 2025-12-19 15:09:25 +00:00
had to commit here, right
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Taiyou06 <kaandindar21@gmail.com>
|
||||
Date: Sun, 11 May 2025 00:37:44 +0200
|
||||
Subject: [PATCH] Optimise player movement checks
|
||||
|
||||
|
||||
diff --git a/src/main/java/ca/spottedleaf/moonrise/common/misc/SingleUserAreaMap.java b/src/main/java/ca/spottedleaf/moonrise/common/misc/SingleUserAreaMap.java
|
||||
index 94689e0342cf95dbedec955d67c95fa07a219678..26e4fe123c84e63ae4808facc33d6bbe94fc3133 100644
|
||||
--- a/src/main/java/ca/spottedleaf/moonrise/common/misc/SingleUserAreaMap.java
|
||||
+++ b/src/main/java/ca/spottedleaf/moonrise/common/misc/SingleUserAreaMap.java
|
||||
@@ -88,6 +88,9 @@ public abstract class SingleUserAreaMap<T> {
|
||||
if (fromX == NOT_SET) {
|
||||
return false;
|
||||
}
|
||||
+ if (org.dreeam.leaf.config.modules.opt.OptimizePlayerMovementProcessing.enabled && fromX == toX && fromZ == toZ && oldViewDistance == newViewDistance) {
|
||||
+ return true;
|
||||
+ }
|
||||
|
||||
this.lastChunkX = toX;
|
||||
this.lastChunkZ = toZ;
|
||||
Reference in New Issue
Block a user