Fix getpos deprecation warning

Fixes #2
master
Starbeamrainbowlabs 2021-05-31 12:11:26 +01:00
parent 059ba8d343
commit a540f2f396
No known key found for this signature in database
GPG Key ID: 1BE5172E637709C2
2 changed files with 3 additions and 1 deletions

View File

@ -23,6 +23,8 @@ To toggle its display, use the `//hud` command - it takes no arguments.
- v0.3: 2nd May 2020
- Fix potential bug in raycast
- Ignore `wielded_light:*` nodes when raycasting
- v0.4: 31st May 2021
- Fix deprecation warning for `getpos``get_pos` (#2)
## More Screenshots

View File

@ -3,7 +3,7 @@ function worldedit_hud_helper.raycast(player)
local look_dir = player:get_look_dir()
local cur_pos = {}
local player_pos = player:getpos()
local player_pos = player:get_pos()
player_pos.y = player_pos.y + 1.5 -- Calculate from the eye position
for i = 1,100 do