From d67956a2cae73abe8f0ec5484c7317748657d8d6 Mon Sep 17 00:00:00 2001 From: Goodlyay Date: Fri, 8 Aug 2025 00:26:38 -0700 Subject: [PATCH] Fix model sometimes not succesfully changing to humanoid --- MCGalaxy/Entity/EntityList.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/MCGalaxy/Entity/EntityList.cs b/MCGalaxy/Entity/EntityList.cs index 356850292..c6e1b6698 100644 --- a/MCGalaxy/Entity/EntityList.cs +++ b/MCGalaxy/Entity/EntityList.cs @@ -288,7 +288,7 @@ namespace MCGalaxy { void Spawn(VisibleEntity vis, Position pos, Orientation rot, string skin, string name, string model) { p.Session.SendSpawnEntity(vis.id, name, skin, pos, rot); - _SendModel(vis, model, true); + _SendModel(vis, model); _SendRot(vis, rot); _SendScales(vis); } @@ -304,12 +304,12 @@ namespace MCGalaxy { lock (locker) { VisibleEntity vis; if (!visible.TryGetValue(e, out vis)) return; - _SendModel(vis, model, false); + _SendModel(vis, model); } } - void _SendModel(VisibleEntity vis, string model, bool spawning) { + void _SendModel(VisibleEntity vis, string model) { if (p.hasChangeModel) { - if (!(spawning && model.CaselessEq("humanoid"))) p.Session.SendChangeModel(vis.id, model); + p.Session.SendChangeModel(vis.id, model); } } void _SendRot(VisibleEntity vis, Orientation rot) {