From e59f9ab2e626c48f58552be6baa4c4402306b769 Mon Sep 17 00:00:00 2001 From: Aikar Date: Sat, 19 Mar 2016 10:45:28 -0400 Subject: [PATCH] fix light level check on monsters --- Spigot-Server-Patches/Optimized-Light-Level-Comparisons.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Spigot-Server-Patches/Optimized-Light-Level-Comparisons.patch b/Spigot-Server-Patches/Optimized-Light-Level-Comparisons.patch index c80913125..ea7311374 100644 --- a/Spigot-Server-Patches/Optimized-Light-Level-Comparisons.patch +++ b/Spigot-Server-Patches/Optimized-Light-Level-Comparisons.patch @@ -107,10 +107,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 this.world.c(10); - i = this.world.getLightLevel(blockposition); -+ passes = world.isLightLevel(blockposition, this.random.nextInt(8)); // Paper ++ passes = !world.isLightLevel(blockposition, this.random.nextInt(8)); // Paper this.world.c(j); - } -+ } else { passes = world.isLightLevel(blockposition, this.random.nextInt(8)); } // Paper ++ } else { passes = !world.isLightLevel(blockposition, this.random.nextInt(8)); } // Paper - return i <= this.random.nextInt(8); + return passes; // Paper