Skip to content
Snippets Groups Projects
  1. Mar 12, 2017
  2. Mar 11, 2017
  3. Mar 10, 2017
    • paramat's avatar
      Flint & steel sounds: Fix bugs caused by nil position · ad118ea9
      paramat authored
      Usage and tool break sounds were played at 'pointed_thing.above' which
      can be nil if not pointing at anything or at an entity. This caused
      sounds to be played to all players on a server non-positionally.
      
      Fallback to player pos for sounds if 'pointed_thing.above' is nil.
      
      Replace 'pt' variable with 'pointed_thing' in 'register_tool'.
      ad118ea9
Loading