mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-28 23:59:00 +00:00
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:
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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user