Let frames be configured for tracking

This commit is contained in:
md_5 2013-05-04 10:11:32 +10:00
parent 51ed9f651d
commit 12c6783767

View file

@ -1,4 +1,4 @@
From ff8a78eac7eefda8f2ede945e227b4eedcc1ab3b Mon Sep 17 00:00:00 2001
From 125f11e1ad88286af2850f90d08d5da06068b9d2 Mon Sep 17 00:00:00 2001
From: Aikar <aikar@aikar.co>
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 {
}
}