mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-01 17:01:56 +01:00
Merge branch 'master' into pre/1.13
This commit is contained in:
commit
f17ce0acb2
2 changed files with 10 additions and 2 deletions
|
@ -35,9 +35,17 @@ index 785c31089..6b0ca4eb9 100644
|
||||||
public float length;
|
public float length;
|
||||||
public float J;
|
public float J;
|
||||||
diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java
|
diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java
|
||||||
index f8458a2b4..ece187129 100644
|
index f8458a2b4..60a2729ad 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 GeneratorAccess, IIBlockAccess, AutoClose
|
||||||
|
}
|
||||||
|
|
||||||
|
entity.valid = true; // CraftBukkit
|
||||||
|
+ entity.shouldBeRemoved = false; // Paper - shouldn't be removed after being re-added
|
||||||
|
new com.destroystokyo.paper.event.entity.EntityAddToWorldEvent(entity.getBukkitEntity()).callEvent(); // Paper - fire while valid
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +0,0 @@ public abstract class World implements GeneratorAccess, IIBlockAccess, AutoClose
|
@@ -0,0 +0,0 @@ public abstract class World implements GeneratorAccess, IIBlockAccess, AutoClose
|
||||||
if (entity.inChunk && this.isChunkLoaded(i, j, true)) {
|
if (entity.inChunk && this.isChunkLoaded(i, j, true)) {
|
||||||
this.getChunkAt(i, j).b(entity);
|
this.getChunkAt(i, j).b(entity);
|
||||||
|
|
|
@ -5,7 +5,7 @@ Subject: [PATCH] World EntityHuman Lookup Optimizations
|
||||||
|
|
||||||
|
|
||||||
diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java
|
diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java
|
||||||
index ece187129..b76135cb0 100644
|
index 60a2729ad..c2b9d60f8 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 GeneratorAccess, IIBlockAccess, AutoClose
|
@@ -0,0 +0,0 @@ public abstract class World implements GeneratorAccess, IIBlockAccess, AutoClose
|
||||||
|
|
Loading…
Reference in a new issue