From 087cd2c55a7a958bc39c5fa6cb7d2788f687562a Mon Sep 17 00:00:00 2001 From: Anuken Date: Sun, 12 Sep 2021 20:21:55 -0400 Subject: [PATCH] Cleanup --- core/src/mindustry/world/blocks/defense/Wall.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/mindustry/world/blocks/defense/Wall.java b/core/src/mindustry/world/blocks/defense/Wall.java index 38f1b4f100..12ae157afd 100644 --- a/core/src/mindustry/world/blocks/defense/Wall.java +++ b/core/src/mindustry/world/blocks/defense/Wall.java @@ -95,7 +95,7 @@ public class Wall extends Block{ //deflect bullets if necessary if(chanceDeflect > 0f){ //slow bullets are not deflected - if(bullet.vel().len() <= 0.1f || !bullet.type.reflectable) return true; + if(bullet.vel.len() <= 0.1f || !bullet.type.reflectable) return true; //bullet reflection chance depends on bullet damage if(!Mathf.chance(chanceDeflect / bullet.damage())) return true; @@ -114,9 +114,9 @@ public class Wall extends Block{ bullet.vel.y *= -1; } - bullet.owner(this); - bullet.team(team); - bullet.time(bullet.time() + 1f); + bullet.owner = this; + bullet.team = team; + bullet.time += 1f; //disable bullet collision by returning false return false;