1
0
mirror of https://github.com/Anuken/Mindustry.git synced 2024-09-22 05:47:44 +03:00

Move update function of resupply point 5x1 spaces back (#4746)

This commit is contained in:
Patrick 'Quezler' Mounier 2021-02-20 18:51:12 +01:00 committed by GitHub
parent d76795e0ae
commit 868d4e05f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,11 +47,11 @@ public class ResupplyPoint extends Block{
} }
@Override @Override
public void updateTile(){ public void updateTile(){
if(consValid() && timer(timerResupply, resupplyRate / timeScale) && resupply(this, range, ammoAmount, ammoColor)){ if(consValid() && timer(timerResupply, resupplyRate / timeScale) && resupply(this, range, ammoAmount, ammoColor)){
consume(); consume();
} }
} }
} }
/** Tries to resupply nearby units. /** Tries to resupply nearby units.