This commit is contained in:
Anuken
2023-07-23 15:19:21 -04:00
parent 05874ad3e2
commit 135874b922
5 changed files with 8 additions and 11 deletions
@@ -37,7 +37,7 @@ public class DrawTurret extends DrawBlock{
part.getOutlines(out);
}
if(block.region.found() && !(block.outlinedIcon > 0 && block.getGeneratedIcons()[block.outlinedIcon].equals(block.region))){
if(block.region.found() && !(block.outlinedIcon > 0 && block.outlinedIcon < block.getGeneratedIcons().length && block.getGeneratedIcons()[block.outlinedIcon].equals(block.region))){
out.add(block.region);
}
@@ -1,7 +1,7 @@
package mindustry.world.meta;
public enum BlockGroup{
none, walls(true), projectors(true), turrets(true), transportation(true), power, liquids(true), drills, units, logic(true), payloads(true);
none, walls(true), projectors(true), turrets(true), transportation(true), power, liquids(true), drills, units, logic(true), payloads(true), heat(true);
/** if true, any block in this category replaces any other block in this category. */
public final boolean anyReplace;