mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/LegacyNetherFork.git
synced 2026-05-22 00:09:57 +00:00
Add Stray
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user