fix light level check on monsters

This commit is contained in:
Aikar 2016-03-19 10:45:28 -04:00
parent 16a89b43d7
commit e59f9ab2e6

View File

@ -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