Minimap liquid shadow

This commit is contained in:
Anuken 2022-01-29 15:40:19 -05:00
parent fdfc43ce72
commit 44677d3697
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,6 @@
package mindustry.ai.types;
import arc.math.*;
import arc.util.*;
import mindustry.*;
import mindustry.entities.*;
import mindustry.entities.units.*;
@ -23,7 +22,6 @@ public class FlyingFollowAI extends FlyingAI{
if(shouldFaceTarget()){
unit.lookAt(target);
Log.info("lookAt target = @", target);
}else if(following != null){
unit.lookAt(following);
}

View File

@ -226,6 +226,8 @@ public class MinimapRenderer{
if(tile.block() == Blocks.air && tile.y < world.height() - 1 && world.tile(tile.x, tile.y + 1).block().solid){
color.mul(0.7f);
}else if(tile.floor().isLiquid && (tile.y >= world.height() - 1 || !world.tile(tile.x, tile.y + 1).floor().isLiquid)){
color.mul(0.84f, 0.84f, 0.9f, 1f);
}
return color.rgba();