feat(bow): arrow spawn height

This commit is contained in:
timokoesters 2019-10-06 21:21:33 +02:00
parent a01edbe370
commit 3078591060
No known key found for this signature in database
GPG Key ID: CD80BE9AAEE78097

View File

@ -297,12 +297,16 @@ impl Server {
dir,
projectile,
} => {
let pos = state
let mut pos = state
.ecs()
.read_storage::<comp::Pos>()
.get(entity)
.unwrap()
.0;
// TODO: Player height
pos.z += 1.2;
Self::create_projectile(
state,
comp::Pos(pos),