mirror of
https://github.com/Minecraft-Community-Edition/client.git
synced 2026-05-24 18:14:34 +00:00
reimplement aether stuff from personal repo
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user