From 766d9f2c1007ab4c1c0d8257c537bf02512cf3c3 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Mon, 29 Jul 2019 00:52:08 +0200 Subject: [PATCH 1/5] Travis CI: Use the `bionic` distribution --- .travis.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index a032acb..32a776a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,16 +1,16 @@ -language: generic +dist: bionic +language: python -addons: - apt: - packages: - - luarocks +python: + - 3.7.1 install: - - pyenv global 3.6.3 - - pip3 install --user pre-commit + - sudo apt-get update -qq + - sudo apt-get install -qqq luarocks + - pip3 install pre-commit - luarocks install --local luacheck script: # All linters are run with pre-commit hooks - export PATH="$HOME/.luarocks/bin:$PATH" - - $HOME/.local/bin/pre-commit run --all-files + - pre-commit run --all-files From af5d69957dd8b58c23d4a20bccb47ed5c7986db9 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Sun, 8 Sep 2019 22:04:47 +0200 Subject: [PATCH 2/5] Update URLs in the README to reflect the move to minetest-mods --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8a3b8dc..d062c9d 100644 --- a/README.md +++ b/README.md @@ -13,11 +13,11 @@ To install Gauges, clone this Git repository into your Minetest's `mods/` directory: ```bash -git clone https://github.com/Calinou/gauges.git +git clone https://github.com/minetest-mods/gauges.git ``` You can also -[download a ZIP archive](https://github.com/Calinou/gauges/archive/master.zip) +[download a ZIP archive](https://github.com/minetest-mods/gauges/archive/master.zip) of Gauges. If you do so, you will need to extract the archive then rename the resulting folder from `gauges-master` to `gauges` – this is **absolutely** required, as the mod won't work otherwise. From 4718559b01e3a3348cc5e62c99f85975abd0d4e8 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Wed, 25 Sep 2019 23:19:13 +0200 Subject: [PATCH 3/5] Update pre-commit hooks to 2.3.0 --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 22f1dbe..04507b4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v2.1.0 + rev: v2.3.0 hooks: - id: end-of-file-fixer - id: trailing-whitespace From ab2d7c83beae4a179ab7d1136d80c7c113e8016e Mon Sep 17 00:00:00 2001 From: David Leal Date: Sat, 28 Sep 2019 13:14:56 -0500 Subject: [PATCH 4/5] Use mod.conf for name and description (#1) --- mod.conf | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 mod.conf diff --git a/mod.conf b/mod.conf new file mode 100644 index 0000000..0f886a6 --- /dev/null +++ b/mod.conf @@ -0,0 +1,2 @@ +name = gauges +description = Adds health and breath gauges above players. From 6cd5e9754218864870a88a7587eccc32e4353ddc Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Sun, 13 Oct 2019 19:47:56 +0200 Subject: [PATCH 5/5] 5.x compatibility, drop 0.4.x support (#2) --- README.md | 4 +--- init.lua | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d062c9d..0943b8c 100644 --- a/README.md +++ b/README.md @@ -60,9 +60,7 @@ on that line. ## Version compatibility -Gauges is currently primarily tested with Minetest 0.4.17. -It may or may not work with newer or older versions. Issues arising in older -versions than 0.4.17 will generally not be fixed. +Gauges requires Minetest 5.0.0 or newer to work as expected. ## License diff --git a/init.lua b/init.lua index 11c776f..c7afcbb 100644 --- a/init.lua +++ b/init.lua @@ -48,7 +48,7 @@ local function add_HP_gauge(name) local ent = minetest.add_entity(pos, "gauges:hp_bar") if ent ~= nil then - ent:set_attach(player, "", {x = 0, y = 10, z = 0}, {x = 0, y = 0, z = 0}) + ent:set_attach(player, "", {x = 0, y = 19, z = 0}, {x = 0, y = 0, z = 0}) ent = ent:get_luaentity() ent.wielder = player:get_player_name() end