-
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Can disable LivingEntity aiStep alive check (#219)
- Loading branch information
1 parent
072c07f
commit 752a60d
Showing
2 changed files
with
24 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
patches/server/0130-Can-disable-LivingEntity-aiStep-alive-check.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: violetc <58360096+s-yh-china@users.noreply.github.com> | ||
Date: Mon, 22 Jul 2024 18:30:42 +0800 | ||
Subject: [PATCH] Can disable LivingEntity aiStep alive check | ||
|
||
|
||
diff --git a/src/main/java/net/minecraft/world/entity/LivingEntity.java b/src/main/java/net/minecraft/world/entity/LivingEntity.java | ||
index fc6bbe34b6ff4912d34f86196c6d55d7116dcedb..be817a51324c81d8adfe73b0977bc5afc0f359d4 100644 | ||
--- a/src/main/java/net/minecraft/world/entity/LivingEntity.java | ||
+++ b/src/main/java/net/minecraft/world/entity/LivingEntity.java | ||
@@ -3193,7 +3193,7 @@ public abstract class LivingEntity extends Entity implements Attackable { | ||
} | ||
} | ||
|
||
- if (!this.isRemoved()) { | ||
+ if (org.leavesmc.leaves.LeavesConfig.disableLivingEntityAiStepAliveCheck || !this.isRemoved()) { // Leaves - can disable check | ||
this.aiStep(); | ||
} | ||
|