Skip to content

Commit

Permalink
Merge pull request Anuken#3 from Blockzilla101/nydus_patch_1
Browse files Browse the repository at this point in the history
fixed flying over surge tower crash
  • Loading branch information
Quezler committed Apr 10, 2020
2 parents 3f94755 + 1dc7456 commit 736de64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/mindustry/entities/type/Player.java
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ public void update(){
}
}

if(isFlying() && tile != null) tile.getAroundTiles(tempTiles).each(t -> t.block.skyscraper, t -> Core.app.post(() -> t.entity.damage(velocity.len2())));
if(isFlying() && tile != null) tile.getAroundTiles(tempTiles).each(t -> t.block.skyscraper, t -> Core.app.post(() -> { if (t != null) t.entity.damage(velocity.len2()); }));

boostHeat = Mathf.lerpDelta(boostHeat, (tile != null && tile.solid()) || (isBoosting && ((!movement.isZero() && moved) || !isLocal)) ? 1f : 0f, 0.08f);
shootHeat = Mathf.lerpDelta(shootHeat, isShooting() ? 1f : 0f, 0.06f);
Expand Down

0 comments on commit 736de64

Please sign in to comment.