DEADSOFTWARE

Some refactor
[cavedroid.git] / core / src / ru / deadsoftware / cavecraft / game / mobs / FallingSand.java
index 37f8a59c366527c6946f5d2c3e9a96e26a1be29c..8c7661923ec57249a05ed11fa4b76175b0f0763c 100644 (file)
@@ -11,8 +11,7 @@ public class FallingSand extends Mob {
     public FallingSand(int x, int y) {
         dir = 0;
         position = new Vector2(x, y);
-        moveX = new Vector2(0, 0);
-        moveY = new Vector2(0, 1);
+        move = new Vector2(0, 1);
         width = 16;
         height = 16;
         canJump = false;
@@ -29,7 +28,7 @@ public class FallingSand extends Mob {
 
     @Override
     public void draw(SpriteBatch spriteBatch, float x, float y) {
-        spriteBatch.draw(Assets.blockTextures[Items.BLOCKS.get("sand").getTexture()], x, y);
+        spriteBatch.draw(Assets.blockTex[Items.blocks.get("sand").getTex()], x, y);
     }
 
     @Override