mirror of
https://github.com/TicTicBoooom-Mods/MasterfulMachinery.git
synced 2026-01-18 16:37:23 +01:00
Merge branch 'master' into create-shit
This commit is contained in:
@@ -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)));
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user