Fix a pvp_areas safemode bug

master
Solebull 2018-12-26 01:31:57 +01:00
parent 5bceed83bf
commit a1ab08524a
3 changed files with 8 additions and 12 deletions

View File

@ -109,9 +109,8 @@ It's really fast. May be used on a website, to show the actual map.
- [X] Is thje lag due to : autosave deactivated
[playereffects] Autosaving mod data to playereffects.mt ...
[playereffects] Wrote playereffects data into /home/rainbru/.minetest/worlds/Survie pour PNJ/playereffects.mt.
- [ ] Next stream test
- [ ] pvp_areas to protect spawn point against pvp
- [X] Next stream test
- [X] pvp_areas to protect spawn point against pvp
- [ ] See that error
[advanced_npc] ERROR: Unable to find building entrance!
@ -177,6 +176,9 @@ It's really fast. May be used on a website, to show the actual map.
To fix our NPC absence issue : Installed but no NPC
- [X] The game is now deadly slow maybe due to playerefects
Deactivated autosave every 10 seconds in playereffects/settings.lua
- [ ] modified mg_villages.ENABLE_PROTECTION from true to false
Doen't work anymore
- [ ] No PVP at -150 of depth
- [ ] Even with protection, we can take what's in villagers' chests
Try to add them as protected chest
- [ ] Too much stuff in NPC villages
@ -267,7 +269,6 @@ https://gist.github.com/iqualfragile/bc0864e1cc9830d40e0a
The inhabitants do not allow any modifications"
Its new, since w ehave new factions mod
modified mg_villages.ENABLE_PROTECTION from true to false
- [X] Again a LuaEntity name "mobs_mc:baby_zombie" not defined ERROR
Maybe because on a generated map before changed baby_zimbie name
Test it for a long time with a new mat

View File

@ -86,5 +86,5 @@ mob_show_health = false
# PVP area
pvp_areas.enable_pvp = true # Default is PVP
pvp_areas.safemode = true # PvP Control areas are safe zones

View File

@ -147,15 +147,10 @@ minetest.register_chatcommand("pvp_areas", {
local KILL_NO = true
local KILL_OK = false
local AREA_ACTIVATE = KILL_OK
local AREA_NOACTIVATE = KILL_NO
local AREA_ACTIVATE = KILL_NO
local AREA_NOACTIVATE = KILL_OK
local savemodeToString = "FALSCH" -- only for debugging
if safemode then
AREA_ACTIVATE = KILL_NO
AREA_NOACTIVATE = KILL_OK
savemodeToString = "WAHR"
end
-- Register punchplayer callback.
minetest.register_on_punchplayer(function(player, hitter, time_from_last_punch, tool_capabilities, dir, damage)