From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Ivan Pekov Date: Mon, 4 Jan 2021 20:32:06 +0200 Subject: [PATCH] Smol entity optimisations diff --git a/src/main/java/net/minecraft/server/EntityBat.java b/src/main/java/net/minecraft/server/EntityBat.java index e384eef05faa449c442334910069d163170a9dcd..c090e0bb941f3d62efed4a0f5676c440b8740951 100644 --- a/src/main/java/net/minecraft/server/EntityBat.java +++ b/src/main/java/net/minecraft/server/EntityBat.java @@ -267,7 +267,7 @@ public class EntityBat extends EntityAmbient { if (blockposition.getY() >= generatoraccess.getSeaLevel()) { return false; } else { - int i = generatoraccess.getLightLevel(blockposition); + //int i = generatoraccess.getLightLevel(blockposition); // Yatopia - moved down byte b0 = 4; if (eJ()) { @@ -276,6 +276,7 @@ public class EntityBat extends EntityAmbient { return false; } + int i = generatoraccess.getLightLevel(blockposition); // Yatopia - moved from above return i > random.nextInt(b0) ? false : a(entitytypes, generatoraccess, enummobspawn, blockposition, random); } }