mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-19 23:01:29 +01:00
Fix PaperSpigot entity removal in unloaded chunks
This commit is contained in:
parent
a4bc5cc10c
commit
b8bc46347f
@ -83,7 +83,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
entity.ticksLived++;
|
entity.ticksLived++;
|
||||||
entity.inactiveTick();
|
entity.inactiveTick();
|
||||||
+ // PaperSpigot start - Remove entities in unloaded chunks
|
+ // 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.inUnloadedChunk = true;
|
||||||
+ entity.die();
|
+ entity.die();
|
||||||
+ }
|
+ }
|
||||||
|
Loading…
Reference in New Issue
Block a user