Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Azagwen committed Jun 26, 2021
1 parent 5a9c9f5 commit fd0c429
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import com.google.gson.JsonObject;
import net.azagwen.atbyw.block.AtbywBlocks;
import net.azagwen.atbyw.block.statues.StatueRegistry;
import net.azagwen.atbyw.util.AtbywUtils;
import net.devtech.arrp.api.RuntimeResourcePack;
import net.devtech.arrp.json.loot.JLootTable;
import net.devtech.arrp.json.tags.JTag;
Expand All @@ -31,8 +32,7 @@ private static JsonObject silkTouchPredicate() {
silkTouch.addProperty("enchantment", "minecraft:silk_touch");
silkTouch.add("levels", level);

JsonArray enchantments = new JsonArray();
enchantments.add(silkTouch);
JsonArray enchantments = AtbywUtils.jsonArray(silkTouch);

JsonObject predicate = new JsonObject();
predicate.add("enchantments", enchantments);
Expand Down

0 comments on commit fd0c429

Please sign in to comment.