2016-03-01 00:09:49 +01:00
|
|
|
From f7cca8a66999ab5b254908f7da834e66e0b6bfa3 Mon Sep 17 00:00:00 2001
|
2015-01-29 22:25:50 +01:00
|
|
|
From: Zach Brown <zach.brown@destroystokyo.com>
|
2016-03-01 00:09:49 +01:00
|
|
|
Date: Tue, 1 Mar 2016 13:24:16 -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
|
2016-03-01 00:09:49 +01:00
|
|
|
index 7d4bb9f..a45e87c 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
|
2016-03-01 00:09:49 +01:00
|
|
|
@@ -43,6 +43,7 @@ public abstract class EntityInsentient extends EntityLiving {
|
|
|
|
private boolean bC;
|
|
|
|
private Entity leashHolder;
|
|
|
|
private NBTTagCompound bE;
|
|
|
|
+ public PathfinderGoalFloat goalFloat; // Paper
|
2015-07-14 19:51:38 +02:00
|
|
|
|
|
|
|
public EntityInsentient(World world) {
|
|
|
|
super(world);
|
2016-03-01 00:09:49 +01:00
|
|
|
@@ -629,6 +630,12 @@ public abstract class EntityInsentient extends EntityLiving {
|
2014-06-29 20:34:16 +02:00
|
|
|
// Spigot Start
|
|
|
|
if ( this.fromMobSpawner )
|
|
|
|
{
|
2016-03-01 00:09:49 +01:00
|
|
|
+ // Paper start - Allow nerfed mobs to jump and float
|
2015-07-14 19:51:38 +02:00
|
|
|
+ if (goalFloat != null) {
|
|
|
|
+ if (goalFloat.a()) goalFloat.e();
|
|
|
|
+ this.g.b();
|
|
|
|
+ }
|
2016-03-01 00:09:49 +01:00
|
|
|
+ // Paper end
|
2014-06-29 20:34:16 +02:00
|
|
|
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
|
2016-03-01 00:09:49 +01:00
|
|
|
index 1a20dbf..e385148 100644
|
2015-07-14 19:51:38 +02:00
|
|
|
--- 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;
|
2016-03-01 00:09:49 +01:00
|
|
|
+ entityinsentient.goalFloat = this; // Paper
|
2015-07-14 19:51:38 +02:00
|
|
|
this.a(4);
|
2016-03-01 00:09:49 +01:00
|
|
|
((Navigation) entityinsentient.getNavigation()).c(true);
|
2015-07-14 19:51:38 +02:00
|
|
|
}
|
2014-06-29 20:34:16 +02:00
|
|
|
--
|
2016-03-01 00:09:49 +01:00
|
|
|
2.7.2
|
2014-06-29 20:34:16 +02:00
|
|
|
|