mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-11-29 03:32:46 +01:00
Update handling of sign color/glow for 1.20 (#3835)
This commit is contained in:
parent
6791acd215
commit
4cd472906c
1 changed files with 2 additions and 2 deletions
|
@ -133,13 +133,13 @@ public class SignBlockEntityTranslator extends BlockEntityTranslator {
|
|||
builder.putString("Text", signText.toString());
|
||||
|
||||
// Java Edition 1.14 added the ability to change the text color of the whole sign using dye
|
||||
Tag color = signData.get("Color");
|
||||
Tag color = signData.get("color");
|
||||
if (color != null) {
|
||||
builder.putInt("SignTextColor", getBedrockSignColor(color.getValue().toString()));
|
||||
}
|
||||
|
||||
// Glowing text
|
||||
boolean isGlowing = getOrDefault(signData.get("GlowingText"), (byte) 0) != (byte) 0;
|
||||
boolean isGlowing = getOrDefault(signData.get("has_glowing_text"), (byte) 0) != (byte) 0;
|
||||
builder.putBoolean("IgnoreLighting", isGlowing);
|
||||
return builder.build();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue