mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-21 02:17:42 +01:00
Fix entities targetting while being ridden
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
From d744f9a25cb9abcacac69541ced6cc0bf4acf046 Mon Sep 17 00:00:00 2001
|
||||
From d499ebe19055966a7138a8070538698b7b31397e Mon Sep 17 00:00:00 2001
|
||||
From: William Blake Galbreath <blake.galbreath@gmail.com>
|
||||
Date: Tue, 23 Jul 2019 08:28:21 -0500
|
||||
Subject: [PATCH] Implement configurable villager brain ticks
|
||||
@@ -9,7 +9,7 @@ Subject: [PATCH] Implement configurable villager brain ticks
|
||||
2 files changed, 13 insertions(+)
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/EntityVillager.java b/src/main/java/net/minecraft/server/EntityVillager.java
|
||||
index daa9544453..7d146d9783 100644
|
||||
index d7f7a0b48..a0137c7af 100644
|
||||
--- a/src/main/java/net/minecraft/server/EntityVillager.java
|
||||
+++ b/src/main/java/net/minecraft/server/EntityVillager.java
|
||||
@@ -49,6 +49,7 @@ public class EntityVillager extends EntityVillagerAbstract implements Reputation
|
||||
@@ -27,8 +27,8 @@ index daa9544453..7d146d9783 100644
|
||||
+ brainTickOffset = getRandom().nextInt(100); // Purpur
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -141,6 +143,10 @@ public class EntityVillager extends EntityVillagerAbstract implements Reputation
|
||||
// Purpur start
|
||||
@@ -148,6 +150,10 @@ public class EntityVillager extends EntityVillagerAbstract implements Reputation
|
||||
@Override
|
||||
protected void mobTick() {
|
||||
this.world.getMethodProfiler().enter("brain");
|
||||
@@ -40,7 +40,7 @@ index daa9544453..7d146d9783 100644
|
||||
this.world.getMethodProfiler().exit();
|
||||
if (!this.et() && this.bB > 0) {
|
||||
diff --git a/src/main/java/net/pl3x/purpur/PurpurConfig.java b/src/main/java/net/pl3x/purpur/PurpurConfig.java
|
||||
index de0cf5c55e..c35d19f66f 100644
|
||||
index de0cf5c55..c35d19f66 100644
|
||||
--- a/src/main/java/net/pl3x/purpur/PurpurConfig.java
|
||||
+++ b/src/main/java/net/pl3x/purpur/PurpurConfig.java
|
||||
@@ -209,6 +209,13 @@ public class PurpurConfig {
|
||||
|
||||
Reference in New Issue
Block a user