forked from minetest-mods/gauges
Merge branch 'master' of yunohost.local:minetest-mods/gauges into nalc-1.2-dev
This commit is contained in:
commit
e1cae85e42
|
@ -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
|
||||
|
|
16
.travis.yml
16
.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
|
||||
|
|
|
@ -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.
|
||||
|
@ -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
|
||||
|
||||
|
|
2
init.lua
2
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 = 18, 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
|
||||
|
|
Loading…
Reference in New Issue
Block a user