private static final int FLUID_STATES = 5;
private static final int[] WATER_IDS = {8, 60, 61, 62, 63};
- private static final int[] LAVA_IDS = {9, 64, 65, 65, 67};
+ private static final int[] LAVA_IDS = {9, 64, 65, 66, 67};
private long fluidLastUpdateTimestamp = 0;
public static boolean fluidCanFlowThere(int thisId, int thatId) {
return thatId == 0 || (!getBlock(thatId).hasCollision() && !isFluid(thatId)) ||
- (isWater(thisId) && isWater(thatId) && thatId >= thisId) ||
- (isLava(thisId) && isLava(thatId) && thatId >= thisId);
+ (isWater(thisId) && isWater(thatId) && thisId < thatId) ||
+ (isLava(thisId) && isLava(thatId) && thisId < thatId);
}
public static Block getBlock(int id) {