This commit is contained in:
Anuken
2023-06-27 16:27:50 -04:00
parent b4d5d05217
commit c15b3421b2

View File

@ -601,7 +601,7 @@ public class ContentParser{
if(value.has("mesh")){
var mesh = value.get("mesh");
if(!mesh.isObject()) throw new RuntimeException("Meshes must be objects.");
if(!mesh.isObject() && !mesh.isArray()) throw new RuntimeException("Meshes must be objects.");
value.remove("mesh");
planet.meshLoader = () -> {
//don't crash, just log an error
@ -616,7 +616,7 @@ public class ContentParser{
if(value.has("cloudMesh")){
var mesh = value.get("cloudMesh");
if(!mesh.isObject()) throw new RuntimeException("Meshes must be objects.");
if(!mesh.isObject() && !mesh.isArray()) throw new RuntimeException("Meshes must be objects.");
value.remove("cloudMesh");
planet.cloudMeshLoader = () -> {
//don't crash, just log an error