From 4ab26e0717e9f5fba9785da8a3da8e4c3a9d2799 Mon Sep 17 00:00:00 2001 From: davchoo <4722249+davchoo@users.noreply.github.com> Date: Mon, 16 Jan 2023 14:46:20 -0500 Subject: [PATCH] Fix light_emission and light_dampening components --- .../registry/populator/CustomBlockRegistryPopulator.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/core/src/main/java/org/geysermc/geyser/registry/populator/CustomBlockRegistryPopulator.java b/core/src/main/java/org/geysermc/geyser/registry/populator/CustomBlockRegistryPopulator.java index 48a8a8259..fae38cd19 100644 --- a/core/src/main/java/org/geysermc/geyser/registry/populator/CustomBlockRegistryPopulator.java +++ b/core/src/main/java/org/geysermc/geyser/registry/populator/CustomBlockRegistryPopulator.java @@ -254,15 +254,12 @@ public class CustomBlockRegistryPopulator { } if (components.lightEmission() != null) { builder.putCompound("minecraft:light_emission", NbtMap.builder() - .putInt("value", components.lightEmission()) + .putByte("emission", components.lightEmission().byteValue()) .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) { - builder.putCompound("minecraft:block_light_filter", NbtMap.builder() - .putByte("value", components.lightDampening().byteValue()) + builder.putCompound("minecraft:light_dampening", NbtMap.builder() + .putByte("lightLevel", components.lightDampening().byteValue()) .build()); } if (components.rotation() != null) {