Skip to content

Commit

Permalink
chore: rah
Browse files Browse the repository at this point in the history
  • Loading branch information
andantet committed Oct 23, 2024
1 parent 56b0ddb commit e7ef4e9
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import dev.andante.codex.encodeQuick
import net.fabricmc.fabric.api.resource.SimpleResourceReloadListener
import net.mcbrawls.blueprint.BlueprintMod
import net.mcbrawls.blueprint.structure.Blueprint
import net.mcbrawls.blueprint.structure.Blueprint.Companion.CODEC
import net.minecraft.nbt.NbtCompound
import net.minecraft.nbt.NbtIo
import net.minecraft.nbt.NbtOps
Expand Down Expand Up @@ -77,7 +76,7 @@ object BlueprintManager : SimpleResourceReloadListener<Map<Identifier, Blueprint
* @return the relative path of the blueprint
*/
fun saveGenerated(server: MinecraftServer, blueprintId: Identifier, blueprint: Blueprint): String {
val nbt = CODEC.encodeQuick(NbtOps.INSTANCE, blueprint)
val nbt = Blueprint.CODEC.encodeQuick(NbtOps.INSTANCE, blueprint)

// load blueprint
blueprints[blueprintId] = blueprint
Expand Down

0 comments on commit e7ef4e9

Please sign in to comment.