Skip to content

Commit

Permalink
Actually, let's use code equivalent to the old version
Browse files Browse the repository at this point in the history
  • Loading branch information
Juuxel committed Sep 24, 2020
1 parent 301fe7f commit 80b3f0e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import net.minecraft.item.Item;
import net.minecraft.tag.Tag;
import net.minecraft.util.Identifier;
import net.minecraft.util.JsonHelper;
import org.spongepowered.asm.mixin.Final;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
Expand All @@ -33,7 +34,7 @@ public class MixinTagBuilder implements TagBuilderWarningAccessor {
private void onFromJson(JsonObject json, String string, CallbackInfoReturnable<Tag.Builder> info) {
try {
if (json.has("libcd")) {
TagExtensions.ExtensionResult result = TagExtensions.load(json.getAsJsonObject("libcd"));
TagExtensions.ExtensionResult result = TagExtensions.load(JsonHelper.getObject(json, "libcd"));

if (result.shouldReplace()) {
entries.clear();
Expand Down

0 comments on commit 80b3f0e

Please sign in to comment.