mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-10 15:19:24 +07:00
Bugfix
This commit is contained in:
parent
7a1f467f27
commit
adb12dcbb8
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Before Width: | Height: | Size: 134 KiB After Width: | Height: | Size: 925 KiB |
Binary file not shown.
Before Width: | Height: | Size: 924 KiB After Width: | Height: | Size: 134 KiB |
@ -39,8 +39,8 @@ public class LiquidJunction extends LiquidBlock{
|
||||
public Tile getLiquidDestination(Tile tile, Tile source, Liquid liquid){
|
||||
int dir = source.relativeTo(tile.x, tile.y);
|
||||
dir = (dir + 4) % 4;
|
||||
Tile next = tile.getNearby(dir).link();
|
||||
if(!next.block().acceptLiquid(next, tile, liquid, 0f) && !(next.block() instanceof LiquidJunction)){
|
||||
Tile next = tile.getNearbyLink(dir);
|
||||
if(next == null || !next.block().acceptLiquid(next, tile, liquid, 0f) && !(next.block() instanceof LiquidJunction)){
|
||||
return tile;
|
||||
}
|
||||
return next.block().getLiquidDestination(next, tile, liquid);
|
||||
|
Loading…
Reference in New Issue
Block a user