Skip to content
This repository was archived by the owner on Mar 11, 2026. It is now read-only.

Commit a82e5f9

Browse files
committed
ComponentBaseBuilder now duplicates BaseComponent before adding it to the sibling text.
1 parent 8a1ee96 commit a82e5f9

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

src/main/kotlin/lirand/api/architecture/KotlinPlugin.kt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ package lirand.api.architecture
22

33
import com.github.shynixn.mccoroutine.SuspendingJavaPlugin
44
import lirand.api.LirandAPI
5-
import lirand.api.dsl.menu.dynamic.chest.chestMenu
6-
import lirand.api.dsl.menu.dynamic.chest.slot
7-
import org.bukkit.Material
8-
import org.bukkit.inventory.ItemStack
95

106
abstract class KotlinPlugin : SuspendingJavaPlugin() {
117

src/main/kotlin/lirand/api/controllers/Controller.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package lirand.api.controllers
22

3-
interface Controller {
3+
internal interface Controller {
44

55
fun onEnable() {}
66

src/main/kotlin/lirand/api/extensions/chat/ComponentBaseBuilder.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class ComponentBaseBuilder {
3535
component: C,
3636
builder: C.() -> Unit = {}
3737
) {
38-
siblingText.addExtra(component.apply(builder))
38+
siblingText.addExtra((component.duplicate() as C).apply(builder))
3939
}
4040

4141
/**

0 commit comments

Comments
 (0)