mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
Fix PaperSpigot entity removal in unloaded chunks
This commit is contained in:
parent
a4bc5cc10c
commit
b8bc46347f
1 changed files with 3 additions and 1 deletions
|
@ -83,7 +83,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
entity.ticksLived++;
|
||||
entity.inactiveTick();
|
||||
+ // PaperSpigot start - Remove entities in unloaded chunks
|
||||
+ if (entity instanceof EntityEnderPearl) {
|
||||
+ if (entity instanceof EntityEnderPearl || (!this.isChunkLoaded(i, j) &&
|
||||
+ (entity instanceof EntityFallingBlock && this.paperSpigotConfig.removeUnloadedFallingBlocks) ||
|
||||
+ (entity instanceof EntityTNTPrimed && this.paperSpigotConfig.removeUnloadedTNTEntities))) {
|
||||
+ entity.inUnloadedChunk = true;
|
||||
+ entity.die();
|
||||
+ }
|
||||
|
|
Loading…
Reference in a new issue