mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-23 04:32:50 -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);
|
int index = p.level.PosToInt(x, y, z);
|
||||||
if (index != p.lastCheckpointIndex) {
|
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);
|
Entities.Spawn(p, p);
|
||||||
p.lastCheckpointIndex = index;
|
p.lastCheckpointIndex = index;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user