Stevertus / objD

objD is a framework for developing Datapacks for Minecraft. It uses the Dart programming language.
https://objd.stevertus.com
BSD 2-Clause "Simplified" License
46 stars 13 forks source link

fix: remove file extension from load/tick tag #30

Closed FlafyDev closed 1 year ago

FlafyDev commented 1 year ago

ObjD currently generates {"values":["valocraft:load.mcfunction"]} instead of {"values":["valocraft:load"]}.
This makes both the load and tick functions do nothing.
This PR fixes this.

Globbi commented 1 year ago

Checkout the Path class in build/context.dart. I think a simple main.toString(false) should do the trick already.

FlafyDev commented 1 year ago

Checkout the Path class in build/context.dart. I think a simple main.toString(false) should do the trick already.

Yep that did it, fixed!