Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-15 02:50:09 +01:00
Fix explosions not doing damage to entities (#1380)
Dieser Commit ist enthalten in:
Ursprung
9ac7577de3
Commit
545f751801
@ -1,11 +1,11 @@
|
|||||||
From 75395ac93dd5164936ba8c355b41edd55a8a1483 Mon Sep 17 00:00:00 2001
|
From f1a992b3f2f203ca2c6776a5f31cf7d83ecf8621 Mon Sep 17 00:00:00 2001
|
||||||
From: Iceee <andrew@opticgaming.tv>
|
From: Iceee <andrew@opticgaming.tv>
|
||||||
Date: Wed, 2 Mar 2016 01:39:52 -0600
|
Date: Wed, 2 Mar 2016 01:39:52 -0600
|
||||||
Subject: [PATCH] Fix lag from explosions processing dead entities
|
Subject: [PATCH] Fix lag from explosions processing dead entities
|
||||||
|
|
||||||
|
|
||||||
diff --git a/src/main/java/net/minecraft/server/Explosion.java b/src/main/java/net/minecraft/server/Explosion.java
|
diff --git a/src/main/java/net/minecraft/server/Explosion.java b/src/main/java/net/minecraft/server/Explosion.java
|
||||||
index e5ba6eddd3..439d7ef40c 100644
|
index e5ba6edd..2620c4c2 100644
|
||||||
--- a/src/main/java/net/minecraft/server/Explosion.java
|
--- a/src/main/java/net/minecraft/server/Explosion.java
|
||||||
+++ b/src/main/java/net/minecraft/server/Explosion.java
|
+++ b/src/main/java/net/minecraft/server/Explosion.java
|
||||||
@@ -111,7 +111,14 @@ public class Explosion {
|
@@ -111,7 +111,14 @@ public class Explosion {
|
||||||
@ -17,7 +17,7 @@ index e5ba6eddd3..439d7ef40c 100644
|
|||||||
+ List list = this.world.getEntities(this.source, new AxisAlignedBB((double) i, (double) l, (double) j1, (double) j, (double) i1, (double) k1), new com.google.common.base.Predicate<Entity>() {
|
+ List list = this.world.getEntities(this.source, new AxisAlignedBB((double) i, (double) l, (double) j1, (double) j, (double) i1, (double) k1), new com.google.common.base.Predicate<Entity>() {
|
||||||
+ @Override
|
+ @Override
|
||||||
+ public boolean apply(Entity entity) {
|
+ public boolean apply(Entity entity) {
|
||||||
+ return IEntitySelector.d.test(entity) && !entity.dead;
|
+ return IEntitySelector.e.test(entity) && !entity.dead;
|
||||||
+ }
|
+ }
|
||||||
+ });
|
+ });
|
||||||
+ // Paper end
|
+ // Paper end
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren