mirror of
https://github.com/GTNewHorizons/Mantle.git
synced 2026-11-21 20:42:26 +00:00
Switch to TagCollectionManager for fluid tag deserializing
FluidTags is not filled that early
This commit is contained in:
1 parent
fdf24f2fc4
commit
7826020114
1 file changed
+1
-1
@@ -344,7 +344,7 @@ public abstract class FluidIngredient {
|
||||
*/
|
||||
private static TagMatch deserialize(JsonObject json) {
|
||||
String tagName = JSONUtils.getString(json, "tag");
|
||||
ITag<Fluid> tag = FluidTags.getCollection().get(new ResourceLocation(tagName));
|
||||
ITag<Fluid> tag = TagCollectionManager.getManager().getFluidTags().get(new ResourceLocation(tagName));
|
||||
if (tag == null) {
|
||||
throw new JsonSyntaxException("Unknown fluid tag '" + tagName + "'");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user