Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-15 19:10:09 +01:00
Fix tripwires + minecarts
Dieser Commit ist enthalten in:
Ursprung
5742900e16
Commit
3faf5e20e5
@ -1,4 +1,4 @@
|
||||
From 2e2b7c86482c38d4c37f1df77509bca28655cb63 Mon Sep 17 00:00:00 2001
|
||||
From 21495bd89ab6753951d9ca3ac2532d94404ab53e Mon Sep 17 00:00:00 2001
|
||||
From: Aikar <aikar@aikar.co>
|
||||
Date: Fri, 18 Jan 2013 19:31:14 -0500
|
||||
Subject: [PATCH] Reduce number of LivingEntity collision checks.
|
||||
@ -8,7 +8,7 @@ Subject: [PATCH] Reduce number of LivingEntity collision checks.
|
||||
1 file changed, 8 insertions(+)
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/EntityLiving.java b/src/main/java/net/minecraft/server/EntityLiving.java
|
||||
index b2481aa..e476393 100644
|
||||
index b2481aa..d33cfb4 100644
|
||||
--- a/src/main/java/net/minecraft/server/EntityLiving.java
|
||||
+++ b/src/main/java/net/minecraft/server/EntityLiving.java
|
||||
@@ -1402,12 +1402,20 @@ public abstract class EntityLiving extends Entity {
|
||||
@ -28,7 +28,7 @@ index b2481aa..e476393 100644
|
||||
for (int i = 0; i < list.size(); ++i) {
|
||||
Entity entity = (Entity) list.get(i);
|
||||
|
||||
+ if (!(entity instanceof EntityMinecart) && skip) { continue; } // Spigot
|
||||
+ if (!(entity instanceof EntityLiving) && skip) { continue; } // Spigot
|
||||
if (entity.M()) {
|
||||
this.o(entity);
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren