Skip to content

Commit

Permalink
Merge pull request #1469 from TeamOpenIndustry/snow-fix
Browse files Browse the repository at this point in the history
Allow Track Tiles to Build in Snow
  • Loading branch information
cam72cam authored Mar 24, 2024
2 parents ccdc1d5 + 33d39cf commit bef835d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,11 @@ public void setDrops(List<ItemStack> drops) {
this.drops = drops;
}

public void clearArea() {
public void clearArea() { // Clear 6-block tall right-of-way ignoring snow UNLESS the snow directly intersects with the location of a future track tile.
for (TrackBase track : tracks) {
for (int i = 0; i < 6 * info.settings.gauge.scale(); i++) {
Vec3i main = track.getPos().up(i);
if (!ITrack.isRail(world, main) && !world.isSnow(main)) {
if (!ITrack.isRail(world, main) && (i == 0 || !world.isSnow(main))) {
world.setToAir(main);
}
if (info.settings.gauge.isModel() && ConfigDamage.enableSideBlockClearing && info.settings.type != TrackItems.SLOPE && info.settings.type != TrackItems.TURNTABLE) {
Expand Down

0 comments on commit bef835d

Please sign in to comment.