Skip to content

Commit

Permalink
Fix sign compat handler since LinBus migration
Browse files Browse the repository at this point in the history
  • Loading branch information
me4502 committed Dec 24, 2023
1 parent 3923935 commit 173fb45
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -25,6 +25,7 @@
import com.google.gson.JsonPrimitive;
import com.google.gson.JsonSyntaxException;
import com.sk89q.worldedit.internal.util.DeprecationUtil;
import com.sk89q.worldedit.util.concurrency.LazyReference;
import com.sk89q.worldedit.world.block.BaseBlock;
import org.enginehub.linbus.tree.LinStringTag;
import org.enginehub.linbus.tree.LinTagType;
Expand Down Expand Up @@ -71,6 +72,7 @@ public BaseBlock updateNbt(BaseBlock block) {
jsonTextObject.add("text", jsonElement);
newTag.put("Text" + (i + 1), LinStringTag.of(jsonTextObject.toString()));
}
block = block.toBaseBlock(LazyReference.computed(newTag.build()));
return block;
}
}

0 comments on commit 173fb45

Please sign in to comment.