Skip to content

Commit

Permalink
Implement stub for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenny-Hui committed Feb 9, 2025
1 parent 3036eb6 commit 738a07e
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import com.mojang.brigadier.exceptions.CommandSyntaxException;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.NotImplementedException;
import org.mtr.mapping.holder.CompoundTag;
import vendor.com.lx862.jcm.org.mozilla.javascript.Context;
import vendor.com.lx862.jcm.org.mozilla.javascript.Scriptable;
Expand Down Expand Up @@ -194,12 +195,13 @@ public static Font readFont(Identifier identifier) {
return result[0];
}

public static CompoundTag readNbtString(String str) throws CommandSyntaxException {
#if LOADER == "forge"
return new CompoundTag(net.minecraft.nbt.TagParser.parseTag(str));
#else
return new CompoundTag(net.minecraft.nbt.StringNbtReader.parse(str));
#endif
public static CompoundTag readNbtString(String str) {
throw new NotImplementedException();
// #if LOADER == "forge"
// return new CompoundTag(net.minecraft.nbt.TagParser.parseTag(str));
// #else
// return new CompoundTag(net.minecraft.nbt.StringNbtReader.parse(str));
// #endif
}

public static String getAddonVersion(String modid) {
Expand Down

0 comments on commit 738a07e

Please sign in to comment.