Fix Switch parkour
This commit is contained in:
parent
93fa87b795
commit
8e4e80f22c
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user