X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=core%2Fsrc%2Fru%2Fdeadsoftware%2Fcavecraft%2Fgame%2Fmobs%2FFallingSand.java;h=8c7661923ec57249a05ed11fa4b76175b0f0763c;hb=feb58daa2c3e8126871e9d4f26e978d2fc1fb01c;hp=1d6a78ee88fa0012f800d2178b5b08653b753074;hpb=75e8bbe4c9dceaabd8bb7e7976ad9052cfb0a968;p=cavedroid.git diff --git a/core/src/ru/deadsoftware/cavecraft/game/mobs/FallingSand.java b/core/src/ru/deadsoftware/cavecraft/game/mobs/FallingSand.java index 1d6a78e..8c76619 100644 --- a/core/src/ru/deadsoftware/cavecraft/game/mobs/FallingSand.java +++ b/core/src/ru/deadsoftware/cavecraft/game/mobs/FallingSand.java @@ -3,7 +3,6 @@ package ru.deadsoftware.cavecraft.game.mobs; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import com.badlogic.gdx.math.Rectangle; import com.badlogic.gdx.math.Vector2; -import ru.deadsoftware.cavecraft.game.GameProc; import ru.deadsoftware.cavecraft.game.Items; import ru.deadsoftware.cavecraft.misc.Assets; @@ -12,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; @@ -30,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