Switch to TagCollectionManager for fluid tag deserializing

FluidTags is not filled that early
This commit is contained in:
KnightMiner committed 2020-09-16 22:09:16 -04:00
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 + "'");
}