geforkt von Mirrors/Paper
28 Zeilen
1.1 KiB
Diff
28 Zeilen
1.1 KiB
Diff
From 37e0a3b799d2042d620798f658a4b1d073b528d4 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 04bc301..3ece597 100644
|
|
--- a/src/main/java/net/minecraft/server/World.java
|
|
+++ b/src/main/java/net/minecraft/server/World.java
|
|
@@ -2579,13 +2579,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
|
|
|