mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-09-26 20:00:47 +00:00
refactor: unglob std::dynamic_pointer_cast
This commit is contained in:
@@ -13,7 +13,7 @@ void EnderCrystalRenderer::render(std::shared_ptr<Entity> _crystal, double x, do
|
||||
{
|
||||
// 4J - original version used generics and thus had an input parameter of type EnderCrystal rather than std::shared_ptr<Entity> we have here -
|
||||
// do some casting around instead
|
||||
std::shared_ptr<EnderCrystal> crystal = dynamic_pointer_cast<EnderCrystal>(_crystal);
|
||||
std::shared_ptr<EnderCrystal> crystal = std::dynamic_pointer_cast<EnderCrystal>(_crystal);
|
||||
if (currentModel != EnderCrystalModel::MODEL_ID)
|
||||
{
|
||||
model = new EnderCrystalModel(0);
|
||||
|
||||
Reference in New Issue
Block a user