diff options
Diffstat (limited to 'azalea-world/src')
| -rw-r--r-- | azalea-world/src/entity/mod.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/azalea-world/src/entity/mod.rs b/azalea-world/src/entity/mod.rs index b9c273f0..37474d1d 100644 --- a/azalea-world/src/entity/mod.rs +++ b/azalea-world/src/entity/mod.rs @@ -260,6 +260,10 @@ pub struct EntityData { pub dimensions: EntityDimensions, /// The bounding box of the entity. This is more than just width and height, unlike dimensions. pub bounding_box: AABB, + + /// Whether the entity will try to jump every tick + /// (equivalent to the space key being held down in vanilla). + pub jumping: bool, } impl EntityData { @@ -291,6 +295,8 @@ impl EntityData { // TODO: have this be based on the entity type bounding_box: dimensions.make_bounding_box(&pos), dimensions, + + jumping: false, } } |
