X-Git-Url: https://deadsoftware.ru/gitweb?p=cavedroid.git;a=blobdiff_plain;f=core%2Fsrc%2Fru%2Fdeadsoftware%2Fcavedroid%2Fgame%2FGameItems.java;h=87bb3d66a0cd4c0ac3a1196dc115d8cdf4f88fa6;hp=c3e020791570a456bf906f41165d8a76cb654171;hb=0d17e8d14a41f6fcedf2b52f01cd7ea88186280f;hpb=25d046da9e5208bf5cb9e7eec7d1345d37ed9492 diff --git a/core/src/ru/deadsoftware/cavedroid/game/GameItems.java b/core/src/ru/deadsoftware/cavedroid/game/GameItems.java index c3e0207..87bb3d6 100644 --- a/core/src/ru/deadsoftware/cavedroid/game/GameItems.java +++ b/core/src/ru/deadsoftware/cavedroid/game/GameItems.java @@ -37,8 +37,8 @@ public class GameItems { 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) {