diff --git a/core/src/ru/deadsoftware/cavedroid/game/GameItems.java b/core/src/ru/deadsoftware/cavedroid/game/GameItems.java
index 85f4b9c765401ba0c2cf851d0ece119043b4d19c..1cebf860ac5f0be1f9a03c2763969d31c0b43c1a 100644 (file)
}
public static boolean isWater(int id) {
- return getBlock(id).getMeta().equals("water");
+ return isWater(getBlock(id));
+ }
+
+ public static boolean isWater(Block block) {
+ return block.getMeta().equals("water");
}
public static boolean isLava(int id) {
- return getBlock(id).getMeta().equals("lava");
+ return isLava(getBlock(id));
+ }
+
+ public static boolean isLava(Block block) {
+ return block.getMeta().equals("lava");
}
public static boolean isSlab(int id) {