diff --git a/core/src/ru/deadsoftware/cavedroid/game/objects/Item.java b/core/src/ru/deadsoftware/cavedroid/game/objects/Item.java
index 0083001d05d844a3744146e3e0d0cd544d7c89c8..9868a96b18d0d0dfe4a2c502cf29c50f7193f96a 100644 (file)
import com.badlogic.gdx.graphics.g2d.Sprite;
+import javax.annotation.CheckForNull;
+
public class Item {
private final String name;
private final String type;
private final Sprite tex;
- public Item(String name, String type, Sprite tex) {
+ public Item(String name, String type, @CheckForNull Sprite tex) {
this.name = name;
this.type = type;
this.tex = tex;
- if (this.tex != null) this.tex.flip(false, true);
+ if (this.tex != null) {
+ this.tex.flip(false, true);
+ }
}
public Sprite getTex() {