reimplement aether stuff from personal repo

This commit is contained in:
Bonnie
2026-03-03 11:12:53 -06:00
parent 4d04f408d7
commit afb8090812
129 changed files with 4352 additions and 591 deletions

View File

@@ -238,7 +238,7 @@ void LocalPlayer::aiStep()
return;
}
oPortalTime = portalTime;
if (isInsidePortal)
if (isInsidePortal || isInsideAetherPortal)
{
if (!level->isClientSide)
{
@@ -246,7 +246,9 @@ void LocalPlayer::aiStep()
}
if (minecraft->screen != NULL) minecraft->setScreen(NULL);
if (portalTime == 0)
inAetherPortalOverlay = isInsideAetherPortal;
if (portalTime == 0 && !isInsideAetherPortal)
{
minecraft->soundEngine->playUI(eSoundType_PORTAL_TRIGGER, 1, random->nextFloat() * 0.4f + 0.8f);
}
@@ -256,6 +258,7 @@ void LocalPlayer::aiStep()
portalTime = 1;
}
isInsidePortal = false;
isInsideAetherPortal = false;
}
else if (hasEffect(MobEffect::confusion) && getEffect(MobEffect::confusion)->getDuration() > (SharedConstants::TICKS_PER_SECOND * 3))
{