Enhance the fix from that addresses - also remove the "held" LightComponent when switching items.
import org.terasology.network.NetworkComponent;
import org.terasology.physics.components.RigidBodyComponent;
import org.terasology.registry.In;
+import org.terasology.rendering.logic.LightComponent;
import org.terasology.rendering.logic.MeshComponent;
import org.terasology.rendering.world.WorldRenderer;
@@ -156,7 +157,9 @@ private void linkHeldItemLocationForLocalPlayer(EntityRef newItem, EntityRef old
if (mountPointComponent != null) {
if (clientHeldItem.exists()) {
+ // TODO: Review if more components need to be removed (or more likely: overhaul more substantially)
clientHeldItem.removeComponent(MeshComponent.class);
+ clientHeldItem.removeComponent(LightComponent.class);
}
// remove the location from the old item
