Make cutout mipmaps explicitly opt-in for item/entity rendering (#8845)

* Make cutout mipmaps explicitly opt-in for item/entity rendering

* Default render type domain to "minecraft" in model datagens
This commit is contained in:
Néstor Amador authored and GitHub committed 2022-07-10 11:10:57 -04:00
1 parent daf5933b79
commit b1113f0363
2 files changed
+4 -8

No files matched your search

@@ -150,13 +150,7 @@ public class ModelBuilder<T extends ModelBuilder<T>> extends ModelFile {
*/
public T renderType(String renderType) {
Preconditions.checkNotNull(renderType, "Render type must not be null");
ResourceLocation asLoc;
if (renderType.contains(":")) {
asLoc = new ResourceLocation(renderType);
} else {
asLoc = new ResourceLocation(getLocation().getNamespace(), renderType);
}
return renderType(asLoc);
return renderType(new ResourceLocation(renderType));
}
/**