mirror of
https://github.com/HMCore/Core.git
synced 2025-12-10 21:06:19 +00:00
added missing check
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user