added missing check

This commit is contained in:
UnrealValentin
2021-04-29 22:32:31 +02:00
parent 4ae71e6be8
commit f73351d12e
2 changed files with 4 additions and 0 deletions

View File

@@ -43,6 +43,7 @@ public class ObjectInfoConfigHandler {
RegistryModule<?, ?> registryModule = (RegistryModule<?, ?>) module;
for (ObjectInfoData data:
moduleInfo.objects) {
if(data.objectInfoChosen.equalsIgnoreCase("default")) break;
if(registryModule.objectAndInfoExist(data.objectInfoName, data.objectInfoChosen)) {
registryModule.forceObjectInfoForObject(data.objectInfoName, data.objectInfoChosen);
} else {

View File

@@ -1,8 +1,11 @@
package org.hmcore.tests;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import org.hmcore.HMCore;
import org.hmcore.modules.Module;
import org.hmcore.modules.RegistryModule;
import org.hmcore.registration.config.ModuleReadable;
import org.hmcore.registration.config.ObjectInfoConfigHandler;
import org.hmcore.tests.modules.impl.JavaCustomObjectInfo;
import org.hmcore.tests.modules.impl.JavaTestRegistryModule;