Skip to content

Commit

Permalink
Fixed sign reading. Close #3
Browse files Browse the repository at this point in the history
  • Loading branch information
ringosham committed Sep 4, 2020
1 parent 79121e2 commit 968e846
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ private SignTranslate getSignThread(World world, BlockPos pos) {
ITextComponent line = ((SignTileEntity) Objects.requireNonNull(world.getTileEntity(pos))).getText(i);
//Combine each line of the sign with spaces.
//Due to differences between languages, this may break asian languages. (Words don't separate with spaces)
text.append(" ").append(line);
text.append(" ").append(line.getUnformattedComponentText().replaceAll("§(.)", ""));
}
text = new StringBuilder(text.toString().replaceAll("§(.)", ""));
if (text.length() == 0)
Expand Down

0 comments on commit 968e846

Please sign in to comment.