Do not filter out large getEntities call
This commit is contained in:
parent
6b6eb8f7f7
commit
d3a270e365
|
@ -0,0 +1,27 @@
|
||||||
|
From 7779fb3770e1782d9a81243e025eb085ad168ff5 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Byteflux <byte@byteflux.net>
|
||||||
|
Date: Tue, 16 Jun 2015 05:30:44 -0700
|
||||||
|
Subject: [PATCH] Do not filter out large getEntities call
|
||||||
|
|
||||||
|
|
||||||
|
diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java
|
||||||
|
index 8258c25..480a6d8 100644
|
||||||
|
--- a/src/main/java/net/minecraft/server/World.java
|
||||||
|
+++ b/src/main/java/net/minecraft/server/World.java
|
||||||
|
@@ -2563,13 +2563,6 @@ public abstract class World implements IBlockAccess {
|
||||||
|
int k = MathHelper.floor((axisalignedbb.c - 2.0D) / 16.0D);
|
||||||
|
int l = MathHelper.floor((axisalignedbb.f + 2.0D) / 16.0D);
|
||||||
|
|
||||||
|
- // CraftBukkit start - filter out large ranges
|
||||||
|
- if (j - i > 10 || l - k > 10) {
|
||||||
|
- getServer().getLogger().log(java.util.logging.Level.WARNING, "Filtered out large getEntities call {0},{1} {2},{3}", new Object[]{i, j, k, j});
|
||||||
|
- return arraylist;
|
||||||
|
- }
|
||||||
|
- // CraftBukkit end
|
||||||
|
-
|
||||||
|
for (int i1 = i; i1 <= j; ++i1) {
|
||||||
|
for (int j1 = k; j1 <= l; ++j1) {
|
||||||
|
if (this.isChunkLoaded(i1, j1, true)) {
|
||||||
|
--
|
||||||
|
1.9.5.msysgit.1
|
||||||
|
|
Loading…
Reference in New Issue