| 53 | } |
| 54 | |
| 55 | static BlockID GetBlock(int x, int y, int z) { |
| 56 | if (World_Contains(x, y, z)) return World_GetBlock(x, y, z); |
| 57 | |
| 58 | if (y >= Env.EdgeHeight) return BLOCK_AIR; |
| 59 | if (y >= Env_SidesHeight) return Env.EdgeBlock; |
| 60 | return Env.SidesBlock; |
| 61 | } |
| 62 | |
| 63 | static cc_bool ClipY(struct Particle* p, int y, cc_bool topFace, CanPassThroughFunc canPassThrough) { |
| 64 | BlockID block; |
no test coverage detected