Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-19 14:30:17 +01:00
Fix light_emission and light_dampening components
Dieser Commit ist enthalten in:
Ursprung
77d991961c
Commit
4ab26e0717
@ -254,15 +254,12 @@ public class CustomBlockRegistryPopulator {
|
|||||||
}
|
}
|
||||||
if (components.lightEmission() != null) {
|
if (components.lightEmission() != null) {
|
||||||
builder.putCompound("minecraft:light_emission", NbtMap.builder()
|
builder.putCompound("minecraft:light_emission", NbtMap.builder()
|
||||||
.putInt("value", components.lightEmission())
|
.putByte("emission", components.lightEmission().byteValue())
|
||||||
.build());
|
.build());
|
||||||
}
|
}
|
||||||
// This is supposed to be sent as "light_dampening" since "block_light_filter" is the old value
|
|
||||||
// However, it seems they forgot to actually update it on the network despite all the documentation changing
|
|
||||||
// So we'll send this for now
|
|
||||||
if (components.lightDampening() != null) {
|
if (components.lightDampening() != null) {
|
||||||
builder.putCompound("minecraft:block_light_filter", NbtMap.builder()
|
builder.putCompound("minecraft:light_dampening", NbtMap.builder()
|
||||||
.putByte("value", components.lightDampening().byteValue())
|
.putByte("lightLevel", components.lightDampening().byteValue())
|
||||||
.build());
|
.build());
|
||||||
}
|
}
|
||||||
if (components.rotation() != null) {
|
if (components.rotation() != null) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren