aboutsummaryrefslogtreecommitdiffhomepage
path: root/Spigot-Server-Patches/0009-Configurable-baby-zombie-movement-speed.patch
diff options
context:
space:
mode:
Diffstat (limited to 'Spigot-Server-Patches/0009-Configurable-baby-zombie-movement-speed.patch')
-rw-r--r--Spigot-Server-Patches/0009-Configurable-baby-zombie-movement-speed.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/Spigot-Server-Patches/0009-Configurable-baby-zombie-movement-speed.patch b/Spigot-Server-Patches/0009-Configurable-baby-zombie-movement-speed.patch
new file mode 100644
index 0000000000..52ae3ebf10
--- /dev/null
+++ b/Spigot-Server-Patches/0009-Configurable-baby-zombie-movement-speed.patch
@@ -0,0 +1,43 @@
+From c8341d72780a26dd551a32e45b60f69f3f078b57 Mon Sep 17 00:00:00 2001
+From: Zach Brown <[email protected]>
+Date: Wed, 21 May 2014 15:35:12 -0500
+Subject: [PATCH] Configurable baby zombie movement speed
+
+
+diff --git a/src/main/java/net/minecraft/server/EntityZombie.java b/src/main/java/net/minecraft/server/EntityZombie.java
+index f732579..d83cceb 100644
+--- a/src/main/java/net/minecraft/server/EntityZombie.java
++++ b/src/main/java/net/minecraft/server/EntityZombie.java
+@@ -13,11 +13,13 @@ import org.bukkit.event.entity.EntityCombustEvent;
+ import org.bukkit.event.entity.EntityTargetEvent;
+ //CraftBukkit end
+
++import org.github.paperspigot.PaperSpigotWorldConfig; // PaperSpigot
++
+ public class EntityZombie extends EntityMonster {
+
+ protected static final IAttribute bp = (new AttributeRanged("zombie.spawnReinforcements", 0.0D, 0.0D, 1.0D)).a("Spawn Reinforcements Chance");
+ private static final UUID bq = UUID.fromString("B9766B59-9566-4402-BC1F-2EE2A276D836");
+- private static final AttributeModifier br = new AttributeModifier(bq, "Baby speed boost", 0.5D, 1);
++ private static final AttributeModifier br = new AttributeModifier(bq, "Baby speed boost", PaperSpigotWorldConfig.babyZombieMovementSpeed, 1); // PaperSpigot - Make baby zombie movement speed configurable
+ private final PathfinderGoalBreakDoor bs = new PathfinderGoalBreakDoor(this);
+ private int bt;
+ private boolean bu = false;
+diff --git a/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java b/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
+index 27be0a8..29863cd 100644
+--- a/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
++++ b/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
+@@ -103,4 +103,10 @@ public class PaperSpigotWorldConfig
+ cactusMaxHeight = getInt( "max-growth-height.cactus", 3 );
+ reedMaxHeight = getInt ( "max-growth-height.reeds", 3 );
+ }
++
++ public static double babyZombieMovementSpeed;
++ private void babyZombieMovementSpeed()
++ {
++ babyZombieMovementSpeed = getDouble( "baby-zombie-movement-speed", 0.5D );
++ }
+ }
+--
+1.9.1
+