diff options
author | anon5 <anon5clam@protonmail.com> | 2021-09-19 12:45:50 +0000 |
---|---|---|
committer | anon5 <anon5clam@protonmail.com> | 2021-09-19 12:45:50 +0000 |
commit | bcc58cb3048faa146ed0f90b330ebbe791d53b5c (patch) | |
tree | 2373852a0557ea584a62134159eb646b15619be3 /playerpos.go | |
parent | d6ba88b091f6c9be3b48ab0fe3f94211ee210700 (diff) |
Switch to Minetest 5.4.1 protocol and other changes
Diffstat (limited to 'playerpos.go')
-rw-r--r-- | playerpos.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/playerpos.go b/playerpos.go index 946bbae..1a388af 100644 --- a/playerpos.go +++ b/playerpos.go @@ -72,3 +72,7 @@ func (p PlayerPos) FOV() float32 { func (p *PlayerPos) SetFOV(fov float32) { p.FOV80 = uint8(fov * 80) } + +func (p PlayerPos) StoodOn() [3]int16 { + return p.Pos().Sub(Vec{1: 5}).Int() +} |