]> git.lizzy.rs Git - dragonblocks_alpha.git/blobdiff - src/physics.c
Add items
[dragonblocks_alpha.git] / src / physics.c
index 8f117b40d76a292d130794b38e71c4f9a75b718c..a89e89cdec09108abcac254a9551f1faedcf10ac 100644 (file)
@@ -20,7 +20,7 @@ static aabb3s32 round_box(aabb3f64 box)
 static bool is_solid(Terrain *terrain, s32 x, s32 y, s32 z)
 {
        NodeType node = terrain_get_node(terrain, (v3s32) {x, y, z}).type;
-       return node == NODE_UNLOADED || node_definitions[node].solid;
+       return node == NODE_UNLOADED || node_defs[node].solid;
 }
 
 bool physics_ground(Terrain *terrain, bool collide, aabb3f32 box, v3f64 *pos, v3f64 *vel)