Skip to content

Commit

Permalink
fix bug with schematics placement
Browse files Browse the repository at this point in the history
  • Loading branch information
xzxADIxzx committed May 13, 2023
1 parent af77528 commit ec5ceec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mod.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ A mod that increases the schematic size limit to 512 blocks! Adds admins, render
",
author: "[#0096FF]xzxADIxzx",
minGameVersion: 144,
version: 2.7.63,
version: 2.7.64,
hidden: true,
main: scheme.Main
3 changes: 1 addition & 2 deletions src/java/scheme/moded/ModedSchematics.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import mindustry.io.*;
import mindustry.world.Block;
import mindustry.world.Tile;
import mindustry.world.blocks.environment.Prop;
import mindustry.world.blocks.legacy.LegacyBlock;
import mindustry.core.Version;

Expand Down Expand Up @@ -167,7 +166,7 @@ public Layer nextLayer() {

public boolean isCursed(Seq<BuildPlan> plans) {
if (plans.isEmpty()) return false;
return plans.first().block.isFloor() || plans.first().block instanceof Prop;
return plans.contains(plan -> !plan.block.isVisible());
}

@Override
Expand Down

0 comments on commit ec5ceec

Please sign in to comment.