mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 12:31:51 +00:00
add player.get_selected_entity(...) & update docs
This commit is contained in:
parent
c17f3fec54
commit
e73ccaded1
5 changed files with 72 additions and 43 deletions
|
|
@ -72,7 +72,7 @@ function on_fall()
|
|||
end
|
||||
|
||||
function on_sensor_enter(index, oid)
|
||||
local playerentity = player.get_entity(hud.get_player()):get_uid()
|
||||
local playerentity = player.get_entity(hud.get_player())
|
||||
if ready and oid == playerentity and index == 0 then
|
||||
entity:despawn()
|
||||
inventory.add(player.get_inventory(oid), dropitem.id, dropitem.count)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue