Bugfixes
This commit is contained in:
@@ -2,7 +2,6 @@ package mindustry.entities.comp;
|
|||||||
|
|
||||||
import mindustry.annotations.Annotations.*;
|
import mindustry.annotations.Annotations.*;
|
||||||
import mindustry.gen.*;
|
import mindustry.gen.*;
|
||||||
import mindustry.world.*;
|
|
||||||
|
|
||||||
import static mindustry.Vars.*;
|
import static mindustry.Vars.*;
|
||||||
|
|
||||||
@@ -21,13 +20,4 @@ abstract class ElevationMoveComp implements Velc, Posc, Flyingc, Hitboxc{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void update(){
|
|
||||||
Tile tile = tileOn();
|
|
||||||
|
|
||||||
if(!net.client() && tile != null && tile.solid() && !isFlying()){
|
|
||||||
kill();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -252,6 +252,14 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
|
|||||||
if(floor.damageTaken > 0f){
|
if(floor.damageTaken > 0f){
|
||||||
damageContinuous(floor.damageTaken);
|
damageContinuous(floor.damageTaken);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!net.client() && tile.solid()){
|
||||||
|
if(type.canBoost){
|
||||||
|
elevation = 1f;
|
||||||
|
}else{
|
||||||
|
kill();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//AI only updates on the server
|
//AI only updates on the server
|
||||||
|
|||||||
Reference in New Issue
Block a user