mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-23 14:17:48 +07:00
mesh fix
This commit is contained in:
@ -601,7 +601,7 @@ public class ContentParser{
|
|||||||
|
|
||||||
if(value.has("mesh")){
|
if(value.has("mesh")){
|
||||||
var mesh = value.get("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");
|
value.remove("mesh");
|
||||||
planet.meshLoader = () -> {
|
planet.meshLoader = () -> {
|
||||||
//don't crash, just log an error
|
//don't crash, just log an error
|
||||||
@ -616,7 +616,7 @@ public class ContentParser{
|
|||||||
|
|
||||||
if(value.has("cloudMesh")){
|
if(value.has("cloudMesh")){
|
||||||
var mesh = value.get("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");
|
value.remove("cloudMesh");
|
||||||
planet.cloudMeshLoader = () -> {
|
planet.cloudMeshLoader = () -> {
|
||||||
//don't crash, just log an error
|
//don't crash, just log an error
|
||||||
|
Reference in New Issue
Block a user