From ab7806a4bfe5ee9546bbc88cbb9f38f96d8a5fd4 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Sat, 15 Feb 2020 16:19:22 +0100 Subject: [PATCH] Tweak grammar in various files - Fix release date to match the actual 1.0.3 release. --- CHANGELOG.md | 6 +++--- README.md | 5 ++--- init.lua | 3 ++- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9bfbe4f..5043537 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,15 +7,15 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] -## [1.0.3] - 2020-01-21 +## [1.0.3] - 2020-02-15 ### Fixed -- Fix the problem when the Gauges lost the player +- Fix an issue with gauges occasionally no longer appearing above a player. ### 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 diff --git a/README.md b/README.md index 7364049..ed04b79 100644 --- a/README.md +++ b/README.md @@ -60,9 +60,8 @@ on that line. ## Version compatibility -Gauges is currently support Minetest 5.0+ and 0.4.17+. This does not work with older versions. -Issues arising in versions older than 5.0 -will generally not be fixed. +Gauges currently supports Minetest 5.0 and later, as well as 0.4.17. +Issues arising in versions older than 5.0 will generally not be fixed. ## License diff --git a/init.lua b/init.lua index 840f582..62636dd 100644 --- a/init.lua +++ b/init.lua @@ -16,7 +16,8 @@ local function add_gauge(player) local entity = minetest.add_entity(player:get_pos(), "gauges:hp_bar") 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)) if version and version < 5 then height = 9