Skip to content

Commit

Permalink
Apply dacmot's suggestions from code review
Browse files Browse the repository at this point in the history
Just pushing some progress into this....

Co-authored-by: Olivier Dragon <[email protected]>
  • Loading branch information
Lazerbeak12345 and dacmot authored Aug 18, 2022
1 parent 0570c43 commit d5fdf01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builder/mods_src/libs/whynot_awards/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ awards.register_award("whynot_spawnpoint", {

})

local orig_beds_on_rgihtclick = beds.on_rightclick
local orig_beds_on_rightclick = beds.on_rightclick
function beds.on_rightclick(pos, player)
orig_beds_on_rgihtclick(pos, player)
orig_beds_on_rightclick(pos, player)
local player_name = player:get_player_name()
if beds.player[player_name] then
awards.unlock(player_name, "whynot_spawnpoint")
Expand Down

0 comments on commit d5fdf01

Please sign in to comment.