mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 15:49:00 +01:00
Don't check chunk for portal on world gen entity add - Fixes #3780
This commit is contained in:
parent
aab94e12c4
commit
130bffdf85
1 changed files with 19 additions and 0 deletions
|
@ -0,0 +1,19 @@
|
||||||
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Aikar <aikar@aikar.co>
|
||||||
|
Date: Sun, 5 Jul 2020 14:59:31 -0400
|
||||||
|
Subject: [PATCH] Don't check chunk for portal on world gen entity add
|
||||||
|
|
||||||
|
|
||||||
|
diff --git a/src/main/java/net/minecraft/server/EntityLiving.java b/src/main/java/net/minecraft/server/EntityLiving.java
|
||||||
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||||
|
--- a/src/main/java/net/minecraft/server/EntityLiving.java
|
||||||
|
+++ b/src/main/java/net/minecraft/server/EntityLiving.java
|
||||||
|
@@ -0,0 +0,0 @@ public abstract class EntityLiving extends Entity {
|
||||||
|
Entity entity = this.getVehicle();
|
||||||
|
|
||||||
|
super.stopRiding(suppressCancellation); // Paper - suppress
|
||||||
|
- if (entity != null && entity != this.getVehicle() && !this.world.isClientSide) {
|
||||||
|
+ if (entity != null && entity != this.getVehicle() && !this.world.isClientSide && entity.valid) { // Paper - don't process on world gen
|
||||||
|
this.a(entity);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue