DEADSOFTWARE

Store block references intead of ids
[cavedroid.git] / core / src / ru / deadsoftware / cavedroid / game / actions / updateblock / UpdateRequiresBlockAction.kt
index 2e273731dce10ed28357f045e8cfdb833be0d07c..57172a5f24a7ef53408e4516b5aa7e3f3bc583eb 100644 (file)
@@ -10,7 +10,7 @@ class UpdateRequiresBlockAction @Inject constructor(
 ) : IUpdateBlockAction {
 
     override fun update(x: Int, y: Int) {
-        if (!gameWorld.getForeMapBlock(x, y + 1).collision) {
+        if (gameWorld.getForeMap(x, y + 1).params.hasCollision.not()) {
             gameWorld.destroyForeMap(x, y)
         }
     }