mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 11:49:37 +00:00
Fix dead sparks being indexed.
This commit is contained in:
1 parent
d0236bec2d
commit
6a2ba7b274
1 file changed
+1
-1
@@ -116,7 +116,7 @@ public class EntityCorporeaSpark extends Entity implements ICorporeaSpark {
|
||||
List<ICorporeaSpark> sparks = getNearbySparks();
|
||||
relatives.clear();
|
||||
for(ICorporeaSpark spark : sparks) {
|
||||
if(spark == null || connections.contains(spark) || spark.getNetwork() != getNetwork() || spark.isMaster())
|
||||
if(spark == null || connections.contains(spark) || spark.getNetwork() != getNetwork() || spark.isMaster() || ((Entity) spark).isDead)
|
||||
continue;
|
||||
|
||||
connections.add(spark);
|
||||
|
||||
Reference in new issue
Block a user