Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
3c4394d6fa | |||
d0f4ff11b7 |
2
pom.xml
2
pom.xml
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<groupId>net.knarcraft</groupId>
|
<groupId>net.knarcraft</groupId>
|
||||||
<artifactId>blacksmith</artifactId>
|
<artifactId>blacksmith</artifactId>
|
||||||
<version>1.0.2-SNAPSHOT</version>
|
<version>1.0.3-SNAPSHOT</version>
|
||||||
<name>Blacksmith</name>
|
<name>Blacksmith</name>
|
||||||
<description>Blacksmith Character for the CitizensAPI</description>
|
<description>Blacksmith Character for the CitizensAPI</description>
|
||||||
|
|
||||||
|
@ -83,7 +83,7 @@ public class GlobalSettings {
|
|||||||
public void changeValue(NPCSetting npcSetting, Object newValue) {
|
public void changeValue(NPCSetting npcSetting, Object newValue) {
|
||||||
if (npcSetting.getValueType() == SettingValueType.STRING_LIST) {
|
if (npcSetting.getValueType() == SettingValueType.STRING_LIST) {
|
||||||
//Workaround to make sure it's treated as the correct type
|
//Workaround to make sure it's treated as the correct type
|
||||||
defaultNPCSettings.put(npcSetting, ConfigHelper.asStringList(newValue));
|
defaultNPCSettings.put(npcSetting, newValue == null ? null : ConfigHelper.asStringList(newValue));
|
||||||
} else {
|
} else {
|
||||||
defaultNPCSettings.put(npcSetting, newValue);
|
defaultNPCSettings.put(npcSetting, newValue);
|
||||||
}
|
}
|
||||||
|
@ -68,7 +68,7 @@ public class NPCSettings {
|
|||||||
public void changeSetting(NPCSetting setting, Object newValue) {
|
public void changeSetting(NPCSetting setting, Object newValue) {
|
||||||
if (setting.getValueType() == SettingValueType.STRING_LIST) {
|
if (setting.getValueType() == SettingValueType.STRING_LIST) {
|
||||||
//Workaround to make sure it's treated as the correct type
|
//Workaround to make sure it's treated as the correct type
|
||||||
currentValues.put(setting, ConfigHelper.asStringList(newValue));
|
currentValues.put(setting, newValue == null ? null : ConfigHelper.asStringList(newValue));
|
||||||
} else {
|
} else {
|
||||||
currentValues.put(setting, newValue);
|
currentValues.put(setting, newValue);
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
name: Blacksmith
|
name: Blacksmith
|
||||||
author: EpicKnarvik97, aPunch, jrbudda, HurricanKai
|
author: EpicKnarvik97, aPunch, jrbudda, HurricanKai
|
||||||
authors: [ EpicKnarvik97, aPunch, jrbudda, HurricanKai ]
|
authors: [ EpicKnarvik97, aPunch, jrbudda, HurricanKai ]
|
||||||
version: 1.0.2
|
version: 1.0.3
|
||||||
main: net.knarcraft.blacksmith.BlacksmithPlugin
|
main: net.knarcraft.blacksmith.BlacksmithPlugin
|
||||||
depend: [ Citizens, Vault ]
|
depend: [ Citizens, Vault ]
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user