public static void performInstantFlow(Collection<Block> liquids) {
// Perform instant physics
if (liquids.isEmpty()) {
return;
}
final TInt21TripleHashSet ignoredBlocks = new TInt21TripleHashSet();
final List<Block> tmpBlocks = new ArrayList<Block>();
BlockMaterial material;
while (!liquids.isEmpty()) {
for (Block liquid : liquids) {
material = liquid.getMaterial();
if (!ignoredBlocks.add(liquid.getX(), liquid.getY(), liquid.getZ())) {
continue;
}
if (!(material instanceof Liquid)) {
continue;
}