Archiviert
13
0
Dieses Repository wurde am 2024-12-25 archiviert. Du kannst Dateien ansehen und es klonen, aber nicht pushen oder Issues/Pull-Requests öffnen.
Paper-Old/Spigot-Server-Patches/0055-Do-not-filter-out-large-getEntities-call.patch

28 Zeilen
1.1 KiB
Diff

2015-07-01 09:27:58 +02:00
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
2015-07-01 09:27:58 +02:00
index 04bc301..3ece597 100644
--- a/src/main/java/net/minecraft/server/World.java
+++ b/src/main/java/net/minecraft/server/World.java
2015-07-01 09:27:58 +02:00
@@ -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