From fb50a80d0f81afb2018b543e68fd4cc5b7b5169d Mon Sep 17 00:00:00 2001 From: md_5 Date: Wed, 21 Dec 2016 17:12:39 +1100 Subject: [PATCH] SPIGOT-2948: Alter filtering logic --- nms-patches/World.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nms-patches/World.patch b/nms-patches/World.patch index 5993990b85..20c488c1da 100644 --- a/nms-patches/World.patch +++ b/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();