Update Main.cs

This commit is contained in:
Lexxy Wolfgang
2025-06-16 07:47:05 -04:00
committed by GitHub
parent 8b9dda2f65
commit ba96b5a58c

View File

@@ -39,13 +39,13 @@ namespace LWGlass.Client
{
return;
}
var glass = world.ComponentType("LWGlass.Client.Glass");
var glass = world.ComponentTypes.GetComponentType("LWGlass.Client.Glass");
foreach(var kvp in world.Data.AllComponents)
{
var (addr, data) = kvp;
if (data.Data.Type == glass)
{
mainWorld.Renderer.Entities.GetClientCode(addr).QueueFrameUpdate();
world.Renderer.Entities.GetClientCode(addr).QueueFrameUpdate();
}
}
}