mirror of
https://github.com/GTNewHorizons/Mantle.git
synced 2026-11-26 06:42:57 +00:00
Replace TODO inside of ItemStackData with a boolean check
This commit is contained in:
1 parent
ca4e7732eb
commit
c277407be5
1 file changed
+3
-3
@@ -34,10 +34,10 @@ public class ItemStackData implements IDataElement {
|
||||
|
||||
private transient boolean customData;
|
||||
private transient boolean isTag;
|
||||
private transient int tagGeneration;
|
||||
private transient boolean tagLoaded;
|
||||
|
||||
public NonNullList<ItemStack> getItems() {
|
||||
if (this.isTag && this.tagGeneration != 0) { //ItemTags.getGeneration()) { TODO FIX
|
||||
if (this.isTag && this.tagLoaded) {
|
||||
this.loadTag();
|
||||
}
|
||||
|
||||
@@ -115,7 +115,7 @@ public class ItemStackData implements IDataElement {
|
||||
|
||||
private void loadTag() {
|
||||
this.isTag = true;
|
||||
this.tagGeneration = 0;//ItemTags.getGeneration(); TODO FIX
|
||||
this.tagLoaded = true;
|
||||
|
||||
ITag<Item> values = ItemTags.getCollection().get(new ResourceLocation(this.tag));
|
||||
if (values != null) {
|
||||
|
||||
Reference in new issue
Block a user