From 12c678376747f70eb58fa60d6e532d9604ad725a Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 4 May 2013 10:11:32 +1000 Subject: [PATCH] Let frames be configured for tracking --- .../0029-Entity-Tracking-Ranges.patch | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/CraftBukkit-Patches/0029-Entity-Tracking-Ranges.patch b/CraftBukkit-Patches/0029-Entity-Tracking-Ranges.patch index 555033dccd..95c71a3aca 100644 --- a/CraftBukkit-Patches/0029-Entity-Tracking-Ranges.patch +++ b/CraftBukkit-Patches/0029-Entity-Tracking-Ranges.patch @@ -1,4 +1,4 @@ -From ff8a78eac7eefda8f2ede945e227b4eedcc1ab3b Mon Sep 17 00:00:00 2001 +From 125f11e1ad88286af2850f90d08d5da06068b9d2 Mon Sep 17 00:00:00 2001 From: Aikar Date: Wed, 20 Feb 2013 11:58:47 -0500 Subject: [PATCH] Entity Tracking Ranges @@ -78,7 +78,7 @@ index 94cb855..fe7b8b0 100644 public Block getBlockAt(int x, int y, int z) { diff --git a/src/main/java/org/bukkit/craftbukkit/Spigot.java b/src/main/java/org/bukkit/craftbukkit/Spigot.java -index 3b29fea..afa0f04 100644 +index 3b29fea..f25852e 100644 --- a/src/main/java/org/bukkit/craftbukkit/Spigot.java +++ b/src/main/java/org/bukkit/craftbukkit/Spigot.java @@ -16,12 +16,16 @@ import net.minecraft.server.EntityComplexPart; @@ -98,7 +98,15 @@ index 3b29fea..afa0f04 100644 import net.minecraft.server.EntityPlayer; import net.minecraft.server.EntityProjectile; import net.minecraft.server.EntitySheep; -@@ -373,6 +377,32 @@ public class Spigot { +@@ -127,7 +131,6 @@ public class Spigot { + || (entity.activationType == 2 && world.animalEntityActivationRange == 0) + || (entity.activationType == 1 && world.monsterEntityActivationRange == 0) + || entity instanceof EntityHuman +- || entity instanceof EntityItemFrame + || entity instanceof EntityProjectile + || entity instanceof EntityEnderDragon + || entity instanceof EntityComplexPart +@@ -373,6 +376,32 @@ public class Spigot { } }