mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-18 11:48:33 -04:00
Allow activating a checkpoint and other blocks around it
e.g. a checkpoint with a /mb air message above it
This commit is contained in:
parent
cca92ce24b
commit
eb2efbd83e
@ -30,7 +30,7 @@ namespace MCGalaxy.Blocks {
|
||||
public delegate void HandlePlace(Player p, BlockID newBlock, ushort x, ushort y, ushort z);
|
||||
|
||||
/// <summary> Returns whether this block handles the player walking through this block at the given coordinates. </summary>
|
||||
/// <remarks> If this returns true, the usual 'death check' behaviour is skipped. </remarks>
|
||||
/// <remarks> If this returns false, continues trying other walkthrough blocks the player is touching. </remarks>
|
||||
public delegate bool HandleWalkthrough(Player p, BlockID block, ushort x, ushort y, ushort z);
|
||||
|
||||
/// <summary> Called to handle the physics for this particular block. </summary>
|
||||
|
@ -64,8 +64,11 @@ namespace MCGalaxy.Blocks {
|
||||
Entities.Spawn(p, p);
|
||||
}
|
||||
p.lastCheckpointIndex = index;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// allow activating other blocks (e.g. /mb message above it)
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user