Ayfri / Kore

A Kotlin library to generate Datapacks for Minecraft Java.

Home Page:https://kore.ayfri.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix resource argument types with `invoke()` function not copying the object.

Ayfri opened this issue · comments

If you do

val myItem = Items.STONE {
   // ...something
}

Then it will modify Items.STONE globally instead of just giving a modified copy.