diff --git a/core/src/ru/deadsoftware/cavedroid/game/objects/Block.java b/core/src/ru/deadsoftware/cavedroid/game/objects/Block.java
index b6628cb20a1f283ab17f63a61e833a79461e9032..0800b5b5cb8d8f713aef6e017a4c7af355675c79 100644 (file)
private final int hp;
private final String drop;
private final String meta;
+ @CheckForNull
private final Sprite tex;
private final boolean coll;
return !drop.equals("none");
}
- public Sprite getTex() {
+ public Sprite getTexture() {
+ assert tex != null;
return tex;
}
- public Rectangle getRect(int x, int y) {
+ public Rectangle getRectangle(int x, int y) {
x *= 16;
y *= 16;
return new Rectangle(x + this.x, y + this.y, w, h);