Removed owner meta data from doors
parent
40c72b24bd
commit
0836f04ba1
13
ROADMAP
13
ROADMAP
|
@ -1,3 +1,4 @@
|
|||
|
||||
-*-org-*-
|
||||
|
||||
* v1.0.0
|
||||
|
@ -228,10 +229,14 @@ It's really fast. May be used on a website, to show the actual map.
|
|||
- peace one : 10XP + table
|
||||
- hostile one : XP table
|
||||
or killing another player : XP
|
||||
**** Fix the door protection issue
|
||||
- [ ] We can't open doors when created by another player
|
||||
Maybe completely remove doors/ mod
|
||||
|
||||
**** TODO [fix_DoorProtection] Fix the door protection issue
|
||||
CLOCK: [2018-12-31 lun. 15:26]--[2018-12-31 lun. 15:40] => 0:14
|
||||
*We can't open doors when created by another player*
|
||||
- [X] First, try to remove "Own by [playername]" message
|
||||
Ok, bt it doesn't remove existing meta
|
||||
- [ ] Then, remove protection. Other players should be able to open doors
|
||||
Works in local multiplayer test. Should be tested with another players
|
||||
Maybe removing the owner meta is enough to remove protection
|
||||
**** Try mumble-link
|
||||
- see https://github.com/chipgw/minetest-mumble-wrapper
|
||||
*** DONE v0.0.2
|
||||
|
|
3
TODO
3
TODO
|
@ -11,7 +11,8 @@ minetest-solebull - LGPL-2.1 - A PVP/faction game for minetest based on Cobalt.
|
|||
|
||||
|
||||
* v0.0.2-4 (29 Dec. 2018 - ???) CLOC ???,???
|
||||
- (5) Bump version to 0.0.2
|
||||
- (6) Removed owner meta data from doors
|
||||
- Bump version to 0.0.2
|
||||
- Now earning XPs for technic ores
|
||||
- show_level mod works
|
||||
- Printed show_level first text
|
||||
|
|
|
@ -323,11 +323,12 @@ function doors.register(name, def)
|
|||
local meta = minetest.get_meta(pos)
|
||||
meta:set_int("state", state)
|
||||
|
||||
--[[
|
||||
if def.protected then
|
||||
meta:set_string("owner", pn)
|
||||
meta:set_string("infotext", "Owned by " .. pn)
|
||||
end
|
||||
|
||||
--]]
|
||||
if not (creative and creative.is_enabled_for and creative.is_enabled_for(pn)) then
|
||||
itemstack:take_item()
|
||||
end
|
||||
|
@ -575,9 +576,10 @@ function doors.register_trapdoor(name, def)
|
|||
def.after_place_node = function(pos, placer, itemstack, pointed_thing)
|
||||
local pn = placer:get_player_name()
|
||||
local meta = minetest.get_meta(pos)
|
||||
--[[
|
||||
meta:set_string("owner", pn)
|
||||
meta:set_string("infotext", "Owned by "..pn)
|
||||
|
||||
--]]
|
||||
return (creative and creative.is_enabled_for and creative.is_enabled_for(pn))
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue