parent
059ba8d343
commit
a540f2f396
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue