This commit is contained in:
asofold 2012-10-09 04:40:06 +02:00
parent be384aa799
commit 2389b82138

View File

@ -836,8 +836,9 @@ public class BlockProperties {
* @return
*/
public static final boolean isPassable(final int id){
if ((blockFlags[id] & (F_LIQUID | F_IGN_PASSABLE)) != 0) return true;
else return (blockFlags[id] & F_SOLID) == 0;
final long flags = blockFlags[id];
if ((flags & (F_LIQUID | F_IGN_PASSABLE)) != 0) return true;
else return (flags & F_SOLID) == 0;
}
/**