From afecf1c36c6cb9eb47e69eb41be62a375a8068b8 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Wed, 21 Dec 2016 17:12:39 +1100 Subject: [PATCH] SPIGOT-2948: Alter filtering logic By: md_5 --- paper-server/nms-patches/World.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/nms-patches/World.patch b/paper-server/nms-patches/World.patch index 5993990b85..20c488c1da 100644 --- a/paper-server/nms-patches/World.patch +++ b/paper-server/nms-patches/World.patch @@ -346,7 +346,7 @@ int i1 = MathHelper.floor(axisalignedbb.c) - 1; int j1 = MathHelper.f(axisalignedbb.f) + 1; + // CraftBukkit start - filter out large ranges -+ com.google.common.base.Preconditions.checkArgument(j - i <= 32 && l - k <= 32 && j1 - i1 <= 32, "Filtered out large getCubes call %s,%s %s,%s %s,%s", i, j, k, l, i1, j1); ++ com.google.common.base.Preconditions.checkArgument((j - i) * (l - k) * (j1 - i1) <= 32 * 32 * 32, "Filtered out large getCubes call %s,%s %s,%s %s,%s", i, j, k, l, i1, j1); + // CraftBukkit end WorldBorder worldborder = this.getWorldBorder(); boolean flag1 = entity != null && entity.br();