Merge branch 'master' into create-shit

This commit is contained in:
Quarris
2022-02-08 01:27:43 +00:00
parent 9312349394
commit da3dffe5d3
2 changed files with 7 additions and 3 deletions

View File

@@ -1,6 +1,8 @@
package com.ticticboooom.mods.mm.ports.state;
import com.google.common.collect.ImmutableList;
import com.google.gson.JsonParseException;
import com.google.gson.JsonSyntaxException;
import com.mojang.blaze3d.matrix.MatrixStack;
import com.mojang.serialization.Codec;
import com.mojang.serialization.codecs.RecordCodecBuilder;
@@ -241,7 +243,9 @@ public class ItemPortState extends PortState {
return (List<T>) ImmutableList.of(new ItemStack(ForgeRegistries.ITEMS.getValue(RLUtils.toRL(item)), this.count));
} else if (!tag.equals("") && RLUtils.isRL(tag)) {
ITag<Item> tag = ItemTags.getCollection().get(RLUtils.toRL(this.tag));
assert tag != null;
if (tag == null) {
throw new JsonSyntaxException("Invalid Tag " + this.tag);
}
List<ItemStack> stacks = new ArrayList<>();
tag.getAllElements().forEach(z -> stacks.add(new ItemStack(z, this.count)));

View File

@@ -1,2 +1,2 @@
#Tue Dec 28 17:45:17 GMT 2021
VERSION_CODE=901
#Mon Feb 07 23:22:03 GMT 2022
VERSION_CODE=905