mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-25 22:30:52 -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 sealed partial class Block
|
||||||
{
|
{
|
||||||
public static bool Walkthrough(byte 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 >= water && block <= lavastill)
|
||||||
|| (block >= yellowflower && block <= redmushroom);
|
|| (block >= yellowflower && block <= redmushroom);
|
||||||
}
|
}
|
||||||
|
@ -41,9 +41,7 @@ namespace MCGalaxy.Games.ZS {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static bool NotPillaring(byte b, byte old) {
|
static bool NotPillaring(byte b, byte old) {
|
||||||
if (b == Block.shrub || b == Block.fire || b == Block.rope) return true;
|
if (Block.Walkthrough(b)) return true;
|
||||||
if (b >= Block.yellowflower && b <= Block.redmushroom) return true;
|
|
||||||
|
|
||||||
old = Block.Convert(old);
|
old = Block.Convert(old);
|
||||||
return old >= Block.water && old <= Block.lavastill;
|
return old >= Block.water && old <= Block.lavastill;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user