diff --git a/MCGalaxy/Blocks/Block.cs b/MCGalaxy/Blocks/Block.cs index d4be57856..337073090 100644 --- a/MCGalaxy/Blocks/Block.cs +++ b/MCGalaxy/Blocks/Block.cs @@ -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); } diff --git a/MCGalaxy/Games/ZombieSurvival/Pillaring.cs b/MCGalaxy/Games/ZombieSurvival/Pillaring.cs index 20dfb80d7..1e7335a13 100644 --- a/MCGalaxy/Games/ZombieSurvival/Pillaring.cs +++ b/MCGalaxy/Games/ZombieSurvival/Pillaring.cs @@ -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; }