Repository navigation
Add support for stack_max - #76
Conversation
69ba7b4 to
3d9ed9a
Compare
|
Utilities is for internal only functionality. Hence it not being documented or supported. Additionally dunno if the current method will work with mod sec in other mods |
3d9ed9a to
18388c2
Compare
|
Ok thanks for the info on utilities, removed the utilities documentation and moved |
18388c2 to
d92aa10
Compare
|
Shouldn't the function be called |
|
Shouldn't the function first check if the server settings have set a non-default default value for |
Well that's were it gets messy, so mineclonia manually sets the Another thing to consider is Exile has 3 different default stack_max's: https://codeberg.org/Mantar/Exile/src/branch/master/mods/exile_game/init.lua#L3-L5 |
In that case mineclonia needs to be treated separately. A server based on MTG can still set the default to something else and the current state of this new function wouldn't catch that. |
d92aa10 to
48de222
Compare
48de222 to
78bd21f
Compare
|
Addressed @SwissalpS comments. The function now takes into account if the game currently running uses the engine setting/default or sets it's own. |
Adds
xcompat.functions.get_default_stack_max()which returns the current game's default stack size.Includes documentation for utilities