Skip to content

Commit

Permalink
Changed prefixes and names from auto_pickup to autopickup.
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertZenz committed Jan 10, 2016
1 parent 14d9dbb commit ef4c9a9
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ The system can be configured by adding settings to the `minetest.conf`:
# defaults to 8.
autopickup_sound_hear_distance = 8

# The name of the sound files to play, defaults to "auto_pickup".
autopickup_sound_name = auto_pickup
# The name of the sound files to play, defaults to "autopickup".
autopickup_sound_name = autopickup


Run manually
Expand Down
4 changes: 2 additions & 2 deletions doc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ <h2><a href="#Fields">Fields</a></h2>
</tr>
<tr>
<td class="name" nowrap><a href="#sound_name">sound_name</a></td>
<td class="summary">The name of the sound to play, defaults to "auto_pickup".</td>
<td class="summary">The name of the sound to play, defaults to "autopickup".</td>
</tr>
</table>

Expand Down Expand Up @@ -571,7 +571,7 @@ <h2><a name="Fields"></a>Fields</h2>
<strong>sound_name</strong>
</dt>
<dd>
The name of the sound to play, defaults to "auto_pickup".
The name of the sound to play, defaults to "autopickup".



Expand Down
8 changes: 4 additions & 4 deletions mods/auto_pickup/autopickup.lua
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ autopickup = {
-- defaults to 8.
sound_hear_distance = settings.get_number("autopickup_sound_hear_distance", 8),

--- The name of the sound to play, defaults to "auto_pickup".
sound_name = settings.get_string("autopickup_sound_name", "auto_pickup")
--- The name of the sound to play, defaults to "autopickup".
sound_name = settings.get_string("autopickup_sound_name", "autopickup")
}


Expand Down Expand Up @@ -97,7 +97,7 @@ end
-- @param entity The LuaEntity to check.
-- @return true if the entity has already been collected.
function autopickup.has_been_collected(entity)
return entity.auto_pickup_collected == nil
return entity.autopickup_collected == nil
end

--- Checks if the given entity has just been dropped by the given player within
Expand Down Expand Up @@ -181,7 +181,7 @@ function autopickup.pickup_items(player)

-- Set a property on the entity so that we don't
-- collect it a second time.
entity.auto_pickup_collected = true
entity.autopickup_collected = true
-- Let's also remove the itemstring to make sure that
-- this item cannot be picked up anymore.
entity.itemstring = ""
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit ef4c9a9

Please sign in to comment.