Skip to content

Commit f005488

Browse files
committed
1.1.7... smh
1 parent 2ee69d2 commit f005488

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ plugins {
33
}
44

55
group = 'dev.manere.inscript'
6-
version = '1.1.6'
6+
version = '1.1.7'
77

88
repositories {
99
mavenCentral()

src/main/java/dev/manere/inscript/SimpleConfigSection.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,11 @@ public String getKey() {
131131
public @NotNull <T> ConfigSection set(final @NotNull String key, final @Nullable T value) {
132132
if (key.contains(".")) {
133133
String[] parts = key.split("\\.");
134-
ConfigSection current = this;
134+
ConfigSection parent = this;
135135
for (int i = 0; i < parts.length - 1; i++) {
136-
current = current.getSection(parts[i]).orElse(current.createSection(parts[i]));
136+
parent = parent.getSection(parts[i]).orElse(parent.createSection(parts[i]));
137137
}
138-
current.set(parts[parts.length - 1], value);
138+
parent.set(parts[parts.length - 1], value);
139139
return this;
140140
}
141141

0 commit comments

Comments
 (0)