Change comments for mcl_autogroup
This commit is contained in:
parent
f8461d5e90
commit
fa86d4e5eb
|
@ -44,10 +44,11 @@ See "mcl_tools/init.lua" for examples of this.
|
||||||
Information about the mod
|
Information about the mod
|
||||||
=========================
|
=========================
|
||||||
|
|
||||||
The mod is also split up into two mods, mcl_autogroups and _mcl_autogroups.
|
The mod is split up into two parts, mcl_autogroup and _mcl_autogroup.
|
||||||
mcl_autogroups contains the API functions used to register custom digging
|
mcl_autogroup contains the API functions used to register custom digging groups.
|
||||||
groups. _mcl_autogroups contains parts of the mod which need to be executed
|
_mcl_autogroup contains most of the code. The leading underscore in the name
|
||||||
after loading all other mods.
|
"_mcl_autogroup" is used to force Minetest to load that part of the mod as late
|
||||||
|
as possible. Minetest loads mods in reverse alphabetical order.
|
||||||
--]]
|
--]]
|
||||||
|
|
||||||
-- The groups which affect dig times
|
-- The groups which affect dig times
|
||||||
|
@ -269,7 +270,7 @@ local overwrite = function()
|
||||||
|
|
||||||
for tname, tdef in pairs(minetest.registered_tools) do
|
for tname, tdef in pairs(minetest.registered_tools) do
|
||||||
-- Assign groupcaps for digging the registered digging groups
|
-- Assign groupcaps for digging the registered digging groups
|
||||||
-- depending on the _mcl_autogroups_groupcaps in the tool
|
-- depending on the _mcl_autogroup_groupcaps in the tool
|
||||||
-- definition
|
-- definition
|
||||||
if tdef._mcl_autogroup_groupcaps then
|
if tdef._mcl_autogroup_groupcaps then
|
||||||
local toolcaps = table.copy(tdef.tool_capabilities) or {}
|
local toolcaps = table.copy(tdef.tool_capabilities) or {}
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
--[[
|
--[[
|
||||||
This mod implements the API to register digging groups for mcl_autogroups. The
|
This mod implements the API to register digging groups for mcl_autogroup. The
|
||||||
rest of the mod is implemented and documented in the mod "_mcl_autogroup".
|
rest of the mod is implemented and documented in the mod _mcl_autogroup.
|
||||||
|
|
||||||
The mcl_autogroups mod is split up into two mods, mcl_autogroups and
|
The mod is split up into two parts, mcl_autogroup and _mcl_autogroup.
|
||||||
_mcl_autogroups. mcl_autogroups contains the API functions used to register
|
mcl_autogroup contains the API functions used to register custom digging groups.
|
||||||
custom digging groups. _mcl_autogroups contains parts of the mod which need to
|
_mcl_autogroup contains most of the code. The leading underscore in the name
|
||||||
be executed after loading all other mods.
|
"_mcl_autogroup" is used to force Minetest to load that part of the mod as late
|
||||||
|
as possible. Minetest loads mods in reverse alphabetical order.
|
||||||
--]]
|
--]]
|
||||||
mcl_autogroup = {}
|
mcl_autogroup = {}
|
||||||
mcl_autogroup.registered_digtime_groups = {}
|
mcl_autogroup.registered_digtime_groups = {}
|
||||||
|
|
Loading…
Reference in New Issue