Edited .gitignore properly; fixed armor invulnarability in the server code.
This commit is contained in:
parent
bbcd249544
commit
847198edb6
2
.gitignore
vendored
2
.gitignore
vendored
@ -53,6 +53,8 @@ build/.cmake/
|
||||
/worlds
|
||||
/world/
|
||||
/client/mod_storage/
|
||||
/clientmods/*
|
||||
!/clientmods/mods_here.txt
|
||||
|
||||
## Configuration/log files
|
||||
minetest.conf
|
||||
|
4
clientmods/mods_here.txt
Normal file
4
clientmods/mods_here.txt
Normal file
@ -0,0 +1,4 @@
|
||||
You can install Minetest or Dragonfire clientmods by copying (and extracting) them into this folder.
|
||||
To enable them write
|
||||
load_mod_<modname> = true
|
||||
in mods.conf in this directory.
|
@ -459,7 +459,7 @@ void PlayerSAO::setHP(s32 hp, const PlayerHPChangeReason &reason)
|
||||
{
|
||||
s32 oldhp = m_hp;
|
||||
|
||||
hp = rangelim(hp, 0, m_prop.hp_max);
|
||||
//hp = rangelim(hp, 0, m_prop.hp_max);
|
||||
|
||||
if (oldhp != hp) {
|
||||
s32 hp_change = m_env->getScriptIface()->on_player_hpchange(this, hp - oldhp, reason);
|
||||
|
Loading…
x
Reference in New Issue
Block a user