mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-11-21 17:23:56 +01:00
fix dragon respawn beams from culling
This commit is contained in:
1 parent
d11ce7512b
commit
2e4ace6ff0
1 file changed
+2
-2
@@ -311,8 +311,8 @@ void EntityRenderDispatcher::render(shared_ptr<Entity> entity, double x, double
|
||||
{
|
||||
AABB* bb = AABB::newTemp(x - 1.0, y - 0.5, z - 1.0, x + 2.0, y + 1.5, z + 2.0);
|
||||
|
||||
// Check if the tile entity is in the camera field.. If it isn't, don't render it
|
||||
if (bb != nullptr && !Frustum::getFrustum()->isVisible(bb)) return;
|
||||
// Check if the entity is in the camera field.. If it isn't, don't render it
|
||||
if (bb != nullptr && !Frustum::getFrustum()->isVisible(bb) && entity->GetType() != eTYPE_ENDER_CRYSTAL) return; //needed for the end dragon beam
|
||||
|
||||
EntityRenderer *renderer = getRenderer(entity);
|
||||
if (renderer != nullptr)
|
||||
|
||||
Reference in new issue
Block a user