Ayfri / Kore

A Kotlin library to generate Datapacks for Minecraft Java.
https://kore.ayfri.com
GNU General Public License v3.0
73 stars 3 forks source link

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

Open Ayfri opened 4 months ago

Ayfri commented 4 months ago

If you do

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

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