2015-09-13 02:57:39 +02:00
|
|
|
From 3a9f1ad42ef76caca5fcfc663e91f27d9c963833 Mon Sep 17 00:00:00 2001
|
2015-01-29 22:25:50 +01:00
|
|
|
From: Zach Brown <zach.brown@destroystokyo.com>
|
2015-03-08 02:16:09 +01:00
|
|
|
Date: Sat, 7 Mar 2015 21:03:06 -0600
|
2014-06-29 20:34:16 +02:00
|
|
|
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
|
2015-09-13 02:57:39 +02:00
|
|
|
index a8a327d..aa38fe6 100644
|
2014-06-29 20:34:16 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/EntityInsentient.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/EntityInsentient.java
|
2015-07-14 19:51:38 +02:00
|
|
|
@@ -33,6 +33,7 @@ public abstract class EntityInsentient extends EntityLiving {
|
|
|
|
private boolean bo;
|
|
|
|
private Entity bp;
|
|
|
|
private NBTTagCompound bq;
|
|
|
|
+ public PathfinderGoalFloat goalFloat; // PaperSpigot
|
|
|
|
|
|
|
|
public EntityInsentient(World world) {
|
|
|
|
super(world);
|
|
|
|
@@ -460,6 +461,12 @@ public abstract class EntityInsentient extends EntityLiving {
|
2014-06-29 20:34:16 +02:00
|
|
|
// Spigot Start
|
|
|
|
if ( this.fromMobSpawner )
|
|
|
|
{
|
|
|
|
+ // PaperSpigot start - Allow nerfed mobs to jump
|
2015-07-14 19:51:38 +02:00
|
|
|
+ if (goalFloat != null) {
|
|
|
|
+ if (goalFloat.a()) goalFloat.e();
|
|
|
|
+ this.g.b();
|
|
|
|
+ }
|
2014-06-29 20:34:16 +02:00
|
|
|
+ // PaperSpigot end
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
// Spigot End
|
2015-07-14 19:51:38 +02:00
|
|
|
diff --git a/src/main/java/net/minecraft/server/PathfinderGoalFloat.java b/src/main/java/net/minecraft/server/PathfinderGoalFloat.java
|
|
|
|
index 6014b09..da019c1 100644
|
|
|
|
--- a/src/main/java/net/minecraft/server/PathfinderGoalFloat.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/PathfinderGoalFloat.java
|
|
|
|
@@ -6,6 +6,7 @@ public class PathfinderGoalFloat extends PathfinderGoal {
|
|
|
|
|
|
|
|
public PathfinderGoalFloat(EntityInsentient entityinsentient) {
|
|
|
|
this.a = entityinsentient;
|
|
|
|
+ entityinsentient.goalFloat = this; // PaperSpigot
|
|
|
|
this.a(4);
|
|
|
|
((Navigation) entityinsentient.getNavigation()).d(true);
|
|
|
|
}
|
2014-06-29 20:34:16 +02:00
|
|
|
--
|
2015-09-13 02:57:39 +02:00
|
|
|
2.5.1
|
2014-06-29 20:34:16 +02:00
|
|
|
|