Fixed #1436 / Fixed crawlers not exploding

This commit is contained in:
Anuken
2020-01-24 23:21:23 -05:00
parent 081edde1f2
commit 923d576a5f
4 changed files with 15 additions and 7 deletions

View File

@@ -182,8 +182,11 @@ public class PowerNode extends PowerBlock{
if(tile == other){
if(other.entity.power.links.size == 0){
int[] total = {0};
getPotentialLinks(tile, link -> {
if(!insulated(tile, link)) tile.configure(link.pos());
if(!insulated(tile, link) && total[0]++ < maxNodes){
tile.configure(link.pos());
}
});
}else{
while(entity.power.links.size > 0){