Moved details init to Item.load()

This commit is contained in:
Collin Smith 2019-03-21 04:07:10 -07:00
parent bf9993a643
commit 46a0d81b23

View File

@ -189,11 +189,12 @@ public class Item extends Actor implements Disposable {
}
}
details = new Details();
return this;
}
public void load() {
details = new Details();
if (invFileDescriptor != null) return;
invFileDescriptor = new AssetDescriptor<>("data\\global\\items\\" + getInvFileName() + '.' + DC6.EXT, DC6.class);
Riiablo.assets.load(invFileDescriptor);