Fix a players count issue
parent
456e001eed
commit
ec1d0482eb
13
ROADMAP
13
ROADMAP
|
@ -254,12 +254,15 @@ It's really fast. May be used on a website, to show the actual map.
|
|||
- [ ] Make a new mod called spawn
|
||||
Maybe used with https://github.com/octacian/spawnpoint
|
||||
**** TODO [feature_FactionUI] Try to add a factions UI
|
||||
CLOCK: [2019-08-10 sam. 04:38]--[2019-08-10 sam. 04:42] => 0:04
|
||||
CLOCK: [2019-06-10 lun. 02:17]--[2019-06-10 lun. 02:33] => 0:16
|
||||
CLOCK: [2019-06-10 lun. 01:56]--[2019-06-10 lun. 02:17] => 0:21
|
||||
CLOCK: [2019-06-09 dim. 22:28]--[2019-06-10 lun. 00:13] => 1:45
|
||||
CLOCK: [2019-06-06 jeu. 19:28]--[2019-06-06 jeu. 19:55] => 0:27
|
||||
:LOGBOOK:
|
||||
CLOCK: [2019-09-04 mer. 13:24]--[2019-09-04 mer. 13:33] => 0:09
|
||||
CLOCK: [2019-06-06 jeu. 19:22]--[2019-06-06 jeu. 19:25] => 0:03
|
||||
CLOCK: [2019-06-06 jeu. 19:28]--[2019-06-06 jeu. 19:55] => 0:27
|
||||
CLOCK: [2019-06-09 dim. 22:28]--[2019-06-10 lun. 00:13] => 1:45
|
||||
CLOCK: [2019-06-10 lun. 01:56]--[2019-06-10 lun. 02:17] => 0:21
|
||||
CLOCK: [2019-06-10 lun. 02:17]--[2019-06-10 lun. 02:33] => 0:16
|
||||
CLOCK: [2019-08-10 sam. 04:38]--[2019-08-10 sam. 04:42] => 0:04
|
||||
:END:
|
||||
see https://dev.minetest.net/formspec#Examples
|
||||
- see in mods/3d_armor_stand/init.lua for an example
|
||||
- [X] create factions_ui/ mod
|
||||
|
|
|
@ -20,7 +20,7 @@ get_factions_ui = function(faction_id)
|
|||
fname = list[faction_id];
|
||||
local faction = factions.get_faction(fname)
|
||||
power = faction.power..'/'..faction.maxpower
|
||||
members = #factions.players
|
||||
members = #faction.players
|
||||
leader = faction.leader or factions.players[0] or "---"
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue