Change models loading (WIP)
This commit is contained in:
parent
f5c91c3aad
commit
8b94c91ea5
6 changed files with 78 additions and 15 deletions
|
@ -51,7 +51,7 @@ public abstract class ModelLoaderMixin {
|
|||
|
||||
@Inject(method = "loadModel", at = @At("HEAD"), cancellable = true)
|
||||
private void be_loadModels(ResourceLocation resourceLocation, CallbackInfo info) {
|
||||
if (BetterEnd.isModId(resourceLocation) && resourceLocation instanceof ModelResourceLocation) {
|
||||
if (resourceLocation instanceof ModelResourceLocation) {
|
||||
String modId = resourceLocation.getNamespace();
|
||||
String path = resourceLocation.getPath();
|
||||
ResourceLocation clearLoc = new ResourceLocation(modId, path);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue