Re-Add per player mob spawning

This commit is contained in:
Spottedleaf
2020-06-26 21:57:36 -07:00
parent 0f7c022cbc
commit a8624a2d1a
6 changed files with 836 additions and 8 deletions

View File

@@ -290,6 +290,11 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ // Paper end - optimise PlayerChunkMap#isOutsideRange
}
public void updatePlayerMobTypeMap(Entity entity) {
@@ -0,0 +0,0 @@ public class PlayerChunkMap extends IChunkLoader implements PlayerChunk.d {
return entityPlayer.mobCounts[enumCreatureType.ordinal()];
}
+ private static double getDistanceSquaredFromChunk(ChunkCoordIntPair chunkPos, Entity entity) { return a(chunkPos, entity); } // Paper - OBFHELPER
private static double a(ChunkCoordIntPair chunkcoordintpair, Entity entity) {
double d0 = (double) (chunkcoordintpair.x * 16 + 8);