Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Commit

Permalink
Explicitly floor player coordinates.
Browse files Browse the repository at this point in the history
Thanks to @credomane for the test and the fix; closes #67.
  • Loading branch information
narc0tiq committed Jul 21, 2016
1 parent 905c429 commit fcdaccd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.4.105
0.4.106
2 changes: 1 addition & 1 deletion value_sensors/player_locations.lua
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ function sensor:update_ui(owner)
if sensor_settings.show_position or sensor_settings.show_surface then
table.insert(desc, ' (')
if sensor_settings.show_position then
table.insert(desc, string.format('@%d, %d', p.position.x, p.position.y))
table.insert(desc, string.format('@%d, %d', math.floor(p.position.x), math.floor(p.position.y)))
end
if sensor_settings.show_surface then
if sensor_settings.show_position then
Expand Down

0 comments on commit fcdaccd

Please sign in to comment.