mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-25 14:17:29 -04:00
ZS: Fix snow counting as pillaring and triggering noclip
This commit is contained in:
parent
1d04102821
commit
6d755205c0
@ -23,7 +23,8 @@ namespace MCGalaxy
|
||||
public sealed partial class Block
|
||||
{
|
||||
public static bool Walkthrough(byte block) {
|
||||
return block == air || block == shrub || block == fire || block == rope
|
||||
return block == air || block == shrub || block == Block.snow
|
||||
|| block == fire || block == rope
|
||||
|| (block >= water && block <= lavastill)
|
||||
|| (block >= yellowflower && block <= redmushroom);
|
||||
}
|
||||
|
@ -41,9 +41,7 @@ namespace MCGalaxy.Games.ZS {
|
||||
}
|
||||
|
||||
static bool NotPillaring(byte b, byte old) {
|
||||
if (b == Block.shrub || b == Block.fire || b == Block.rope) return true;
|
||||
if (b >= Block.yellowflower && b <= Block.redmushroom) return true;
|
||||
|
||||
if (Block.Walkthrough(b)) return true;
|
||||
old = Block.Convert(old);
|
||||
return old >= Block.water && old <= Block.lavastill;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user