mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-23 04:32:50 -04:00
Invalid portals/mbs shouldn't set 'last walkthrough' position. (Thanks goodlyay)
This commit is contained in:
parent
1f9c2b0321
commit
c789f22add
@ -63,14 +63,12 @@ namespace MCGalaxy.Blocks {
|
||||
|
||||
internal static bool DoPortal(Player p, byte block, ushort x, ushort y, ushort z) {
|
||||
if (p.level.PosToInt(x, y, z) == p.lastWalkthrough) return true;
|
||||
Portal.Handle(p, x, y, z);
|
||||
return true;
|
||||
return Portal.Handle(p, x, y, z);
|
||||
}
|
||||
|
||||
internal static bool DoMessageBlock(Player p, byte block, ushort x, ushort y, ushort z) {
|
||||
if (p.level.PosToInt(x, y, z) == p.lastWalkthrough) return true;
|
||||
MessageBlock.Handle(p, x, y, z, false);
|
||||
return true;
|
||||
return MessageBlock.Handle(p, x, y, z, false);
|
||||
}
|
||||
|
||||
internal static bool Checkpoint(Player p, byte block, ushort x, ushort y, ushort z) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user