Add Stray

This commit is contained in:
DeadVoxelx
2026-04-12 16:15:33 -04:00
committed by GitHub
parent 0aa720baf8
commit 2d00334931

View File

@@ -5,6 +5,7 @@
ResourceLocation SkeletonRenderer::SKELETON_LOCATION = ResourceLocation(TN_MOB_SKELETON);
ResourceLocation SkeletonRenderer::WITHER_SKELETON_LOCATION = ResourceLocation(TN_MOB_WITHER_SKELETON);
ResourceLocation SkeletonRenderer::STRAY_LOCATION = ResourceLocation(TN_MOB_STRAY);
SkeletonRenderer::SkeletonRenderer() : HumanoidMobRenderer(new SkeletonModel(), .5f)
{
@@ -31,5 +32,9 @@ ResourceLocation *SkeletonRenderer::getTextureLocation(shared_ptr<Entity> entity
{
return &WITHER_SKELETON_LOCATION;
}
if (skeleton->getSkeletonType() == Skeleton::TYPE_STRAY)
{
return &STRAY_LOCATION;
}
return &SKELETON_LOCATION;
}
}