mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-02 11:22:01 +01:00
Load chunks in getCubes()
This commit is contained in:
parent
fc9503b08d
commit
9da2e5eff7
@ -140,6 +140,23 @@ diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/m
|
|||||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||||
--- a/src/main/java/net/minecraft/server/World.java
|
--- a/src/main/java/net/minecraft/server/World.java
|
||||||
+++ b/src/main/java/net/minecraft/server/World.java
|
+++ b/src/main/java/net/minecraft/server/World.java
|
||||||
|
@@ -0,0 +0,0 @@ public abstract class World implements IBlockAccess {
|
||||||
|
{
|
||||||
|
if ( !this.isChunkLoaded( chunkx, chunkz, true ) )
|
||||||
|
{
|
||||||
|
- entity.inUnloadedChunk = true; // PaperSpigot - Remove entities in unloaded chunks
|
||||||
|
- continue;
|
||||||
|
+ // PaperSpigot start
|
||||||
|
+ if (entity.loadChunks) {
|
||||||
|
+ ((ChunkProviderServer) entity.world.chunkProvider).getChunkAt(chunkx, chunkz);
|
||||||
|
+ } else {
|
||||||
|
+ entity.inUnloadedChunk = true; // PaperSpigot - Remove entities in unloaded chunks
|
||||||
|
+ continue;
|
||||||
|
+ }
|
||||||
|
+ // PaperSpigot end
|
||||||
|
}
|
||||||
|
int cz = chunkz << 4;
|
||||||
|
Chunk chunk = this.getChunkAt( chunkx, chunkz );
|
||||||
@@ -0,0 +0,0 @@ public abstract class World implements IBlockAccess {
|
@@ -0,0 +0,0 @@ public abstract class World implements IBlockAccess {
|
||||||
int i1 = MathHelper.floor(entity.locZ / 16.0D);
|
int i1 = MathHelper.floor(entity.locZ / 16.0D);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user