Modified the J3M loader to be a little less like a 1980s text adventure.
Added a message to the exception thrown when using an invalid light mode. Converted it to an IOException instead of the UnsupportedOperationException (which is a runtime exception) so that the calling code will output a meaningful error about which asset actually failed.
This commit is contained in:
parent
c2fe803f53
commit
d5bfe1e813
@ -657,7 +657,7 @@ public class J3MLoader implements AssetLoader {
|
|||||||
technique.setLogic(new SinglePassAndImageBasedLightingLogic(technique));
|
technique.setLogic(new SinglePassAndImageBasedLightingLogic(technique));
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
throw new UnsupportedOperationException();
|
throw new IOException("Light mode not supported:" + technique.getLightMode());
|
||||||
}
|
}
|
||||||
|
|
||||||
List<TechniqueDef> techniqueDefs = new ArrayList<>();
|
List<TechniqueDef> techniqueDefs = new ArrayList<>();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user