Fix Switch parkour

This commit is contained in:
Sam 2017-11-17 10:58:22 +00:00 committed by Alexander Meech
parent 93fa87b795
commit 8e4e80f22c
2 changed files with 7 additions and 6 deletions

View File

@ -70,7 +70,7 @@ public class ChristmasNew extends ChristmasCommon
_sections.add(new Section3(this, targets.remove(0), presents.remove(0)));
_sections.add(new Section4(this, targets.remove(0), presents.remove(0), presents.remove(0)));
_sections.add(new Section5(this, targets.remove(0), presents.remove(0), presents.remove(0)));
_sections.add(new Section6(this, targets.remove(0), presents.remove(0)));
//_sections.add(new Section6(this, targets.remove(0), presents.remove(0)));
}
@EventHandler

View File

@ -67,7 +67,7 @@ class SwitchParkour extends SectionChallenge
{
_checkpointHologram.start();
_enabled = true;
}, 600);
}, 400);
}
@Override
@ -82,12 +82,12 @@ class SwitchParkour extends SectionChallenge
@EventHandler
public void updateSolids(UpdateEvent event)
{
if (!_enabled)
if (!_enabled || event.getType() != UpdateType.SLOW)
{
return;
}
if (_removeTick && event.getType() == UpdateType.SLOW)
if (_removeTick)
{
if (_blackSolid)
{
@ -100,7 +100,7 @@ class SwitchParkour extends SectionChallenge
_removeTick = !_removeTick;
}
else if (event.getType() == UpdateType.TWOSEC)
else
{
if (_blackSolid)
{
@ -112,8 +112,9 @@ class SwitchParkour extends SectionChallenge
}
_blackSolid = !_blackSolid;
_removeTick = !_removeTick;
}
_removeTick = !_removeTick;
}
@EventHandler