mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-22 12:05:51 -04:00
Fix checkpoint blocks not setting client-side spawn point in middle of block, fixes #476.
This commit is contained in:
parent
34d0f62f07
commit
76f1f4f01e
@ -56,6 +56,9 @@ namespace MCGalaxy.Blocks {
|
||||
|
||||
int index = p.level.PosToInt(x, y, z);
|
||||
if (index != p.lastCheckpointIndex) {
|
||||
Position pos = p.Pos;
|
||||
pos.X = x * 32 + 16; pos.Z = z * 32 + 16;
|
||||
p.SendPos(Entities.SelfID, pos, p.Rot);
|
||||
Entities.Spawn(p, p);
|
||||
p.lastCheckpointIndex = index;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user