mirror of
https://github.com/minetest-mods/gauges.git
synced 2024-12-23 01:10:23 +01:00
Tweak grammar in various files
- Fix release date to match the actual 1.0.3 release.
This commit is contained in:
parent
0f924c177c
commit
ab7806a4bf
@ -7,15 +7,15 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
## [1.0.3] - 2020-01-21
|
## [1.0.3] - 2020-02-15
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
- Fix the problem when the Gauges lost the player
|
- Fix an issue with gauges occasionally no longer appearing above a player.
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
- Now the Minetest version is checked using `minetest.get_version()`. It is very reliable.
|
- Improved the reliability of the Minetest version check (for compatibility with 0.4.17).
|
||||||
|
|
||||||
## [1.0.2] - 2020-01-16
|
## [1.0.2] - 2020-01-16
|
||||||
|
|
||||||
|
@ -60,9 +60,8 @@ on that line.
|
|||||||
|
|
||||||
## Version compatibility
|
## Version compatibility
|
||||||
|
|
||||||
Gauges is currently support Minetest 5.0+ and 0.4.17+. This does not work with older versions.
|
Gauges currently supports Minetest 5.0 and later, as well as 0.4.17.
|
||||||
Issues arising in versions older than 5.0
|
Issues arising in versions older than 5.0 will generally not be fixed.
|
||||||
will generally not be fixed.
|
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
|
3
init.lua
3
init.lua
@ -16,7 +16,8 @@ local function add_gauge(player)
|
|||||||
local entity = minetest.add_entity(player:get_pos(), "gauges:hp_bar")
|
local entity = minetest.add_entity(player:get_pos(), "gauges:hp_bar")
|
||||||
local height = 19
|
local height = 19
|
||||||
|
|
||||||
-- check for Minetest 0.4.17
|
-- Check for Minetest 0.4.17 and adjust the entity height if needed
|
||||||
|
-- (The entity height offset was changed in Minetest 5.0.0.)
|
||||||
local version = tonumber(minetest.get_version().string:sub(1, 1))
|
local version = tonumber(minetest.get_version().string:sub(1, 1))
|
||||||
if version and version < 5 then
|
if version and version < 5 then
|
||||||
height = 9
|
height = 9
|
||||||
|
Loading…
Reference in New Issue
Block a user