diff --git a/core/src/ru/deadsoftware/cavedroid/game/GameItems.java b/core/src/ru/deadsoftware/cavedroid/game/GameItems.java
index bd0e5bb1dcd90f2788e7b2bd15f47ac9da3fed3e..87bb3d66a0cd4c0ac3a1196dc115d8cdf4f88fa6 100644 (file)
return getBlock(id).getMeta().equals("slab");
}
+ public static boolean fluidCanFlowThere(int thisId, int thatId) {
+ return thatId == 0 || (!getBlock(thatId).hasCollision() && !isFluid(thatId)) ||
+ (isWater(thisId) && isWater(thatId) && thisId < thatId) ||
+ (isLava(thisId) && isLava(thatId) && thisId < thatId);
+ }
+
public static Block getBlock(int id) {
return blocks.getValueAt(id);
}