add player.get_selected_entity(...) & update docs
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user