mirror of
https://github.com/Samsuik/Sakura.git
synced 2026-01-04 15:31:43 +00:00
20 lines
1.1 KiB
Diff
20 lines
1.1 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Samsuik <40902469+Samsuik@users.noreply.github.com>
|
|
Date: Sat, 18 Nov 2023 15:12:14 +0000
|
|
Subject: [PATCH] Add option to disable entity ai
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/world/entity/Mob.java b/src/main/java/net/minecraft/world/entity/Mob.java
|
|
index 02cb6b8c1d59855ff4a8aad3024fe12007eca0ee..3e8d3ec9fe19d2e16d93144d54bde351cc6060e8 100644
|
|
--- a/src/main/java/net/minecraft/world/entity/Mob.java
|
|
+++ b/src/main/java/net/minecraft/world/entity/Mob.java
|
|
@@ -889,7 +889,7 @@ public abstract class Mob extends LivingEntity implements Targeting {
|
|
@Override
|
|
protected final void serverAiStep() {
|
|
++this.noActionTime;
|
|
- if (!this.aware) { // Paper start - Allow nerfed mobs to jump, float and take water damage
|
|
+ if (!this.aware || this.level.sakuraConfig().entity.disableMobAi) { // Sakura // Paper start - Allow nerfed mobs to jump, float and take water damage
|
|
if (goalFloat != null) {
|
|
if (goalFloat.canUse()) goalFloat.tick();
|
|
this.getJumpControl().tick();
|