mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-17 16:37:43 +01:00
42 lines
1.4 KiB
Diff
42 lines
1.4 KiB
Diff
From dae587f9148c0724d728f408425908dc0d867e60 Mon Sep 17 00:00:00 2001
|
|
From: William Blake Galbreath <blake.galbreath@gmail.com>
|
|
Date: Fri, 10 May 2019 14:34:35 -0500
|
|
Subject: [PATCH] Remove useless cooldown in Villagers
|
|
|
|
---
|
|
.../java/net/minecraft/server/EntityVillager.java | 11 ++++++-----
|
|
1 file changed, 6 insertions(+), 5 deletions(-)
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/EntityVillager.java b/src/main/java/net/minecraft/server/EntityVillager.java
|
|
index d489a5a8c..5c0d8b063 100644
|
|
--- a/src/main/java/net/minecraft/server/EntityVillager.java
|
|
+++ b/src/main/java/net/minecraft/server/EntityVillager.java
|
|
@@ -186,10 +186,11 @@ public class EntityVillager extends EntityVillagerAbstract implements Reputation
|
|
@Override
|
|
public void tick() {
|
|
super.tick();
|
|
- if (this.ec() > 0) {
|
|
- this.r(this.ec() - 1);
|
|
- }
|
|
-
|
|
+ // Purpur start - remove useless cooldown
|
|
+ //if (this.ec() > 0) {
|
|
+ // this.r(this.ec() - 1);
|
|
+ //}
|
|
+ // Purpur end
|
|
}
|
|
|
|
@Override
|
|
@@ -231,7 +232,7 @@ public class EntityVillager extends EntityVillagerAbstract implements Reputation
|
|
}
|
|
|
|
private void es() {
|
|
- this.r(40);
|
|
+ // this.r(40); // Purpur - remove useless cooldown
|
|
if (!this.world.e()) {
|
|
this.a(SoundEffects.ENTITY_VILLAGER_NO, this.getSoundVolume(), this.cU());
|
|
}
|
|
--
|
|
2.20.1
|
|
|