Skip to content

Commit

Permalink
fix some extenders not being counted
Browse files Browse the repository at this point in the history
  • Loading branch information
OgelGames committed Jan 13, 2020
1 parent 564138a commit f0dbeb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion teleport.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ local function count_extenders(pos)
local node = minetest.get_node({ x=pos.x+x, y=pos.y, z=pos.z+z})
local name = node.name
-- trim color off the back
name = string.gsub(name, '^(telemosaic:extender_%a+)_%a+', '%1')
name = string.gsub(name, '^(telemosaic:extender_%a+)_.+', '%1')
extended = extended + ( C.extender_ranges[name] or 0.0 )
end
end
Expand Down

0 comments on commit f0dbeb2

Please sign in to comment.