mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-23 15:47:44 +01:00
f07313c43f
Fixes the issue of mobs constantly going North-West in pens and other areas backported from 1.8
26 lines
960 B
Diff
26 lines
960 B
Diff
From 83a26547cdc879226ad2e8c996ce54e21b56b040 Mon Sep 17 00:00:00 2001
|
|
From: Zach Brown <Zbob750@live.com>
|
|
Date: Sun, 29 Jun 2014 13:32:36 -0500
|
|
Subject: [PATCH] Allow nerfed mobs to jump
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/EntityInsentient.java b/src/main/java/net/minecraft/server/EntityInsentient.java
|
|
index f6c4788..2915f4a 100644
|
|
--- a/src/main/java/net/minecraft/server/EntityInsentient.java
|
|
+++ b/src/main/java/net/minecraft/server/EntityInsentient.java
|
|
@@ -403,6 +403,12 @@ public abstract class EntityInsentient extends EntityLiving {
|
|
// Spigot Start
|
|
if ( this.fromMobSpawner )
|
|
{
|
|
+ // PaperSpigot start - Allow nerfed mobs to jump
|
|
+ this.world.methodProfiler.a("goalSelector");
|
|
+ this.goalSelector.a();
|
|
+ this.world.methodProfiler.c("jump");
|
|
+ this.bm.b();
|
|
+ // PaperSpigot end
|
|
return;
|
|
}
|
|
// Spigot End
|
|
--
|
|
1.9.1
|
|
|