mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 23:38:25 +01:00
Fix tripwires + minecarts
By: md_5 <md_5@live.com.au>
This commit is contained in:
parent
c47a51b285
commit
2091687de2
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue