mirror of
https://github.com/Auxilor/Reforges.git
synced 2025-12-19 15:09:23 +00:00
Fixed TargetYml#getSlot
This commit is contained in:
@@ -34,12 +34,12 @@ class TargetYml(plugin: EcoPlugin) : StaticBaseConfig("target", plugin, ConfigTy
|
||||
}
|
||||
|
||||
/**
|
||||
* Get all materials from a target name.
|
||||
* Get a [SlotType] for the target.
|
||||
*
|
||||
* @param target The name of the target.
|
||||
* @return All materials.
|
||||
* @return The [SlotType].
|
||||
*/
|
||||
fun getSlot(target: String): SlotType {
|
||||
return SlotTypes[target] ?: SlotTypeAny
|
||||
return SlotTypes[this.getString("$target.slot")] ?: SlotTypeAny
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user