summaryrefslogtreecommitdiff
path: root/builtin/common/misc_helpers.lua
AgeCommit message (Collapse)Author
2018-11-01Fix string.split returning an empty table if string starts with sepearator ↵Pierre-Yves Rollo
(#7827) Calling string.split(":A:B:C:D", ":") returns an empty array. This is due to first empty string not making repeat loop decreasing max_split which has a 0 value when reaching until. Changing max_splits default value from -1 to -2 fixes that issue.
2018-09-23Builtin//misc_helpers: Various fixes (#7737)Paramat
Remove unused variable 'seplen'. Fix 'cparam2'->'param2'. Do not initialise variable 'p' twice.
2018-05-16Pointed_thing_to_face_pos: Avoid crash when player is inside a node (#7342)Paramat
Avoid crash in some situations when player is inside a node, causing 'above' to equal 'under'. In this situation return 'under' which is the node position very close to the face position that would normally be returned.
2018-04-19Add online content repositoryrubenwardy
Replaces mods and texture pack tabs with a single content tab
2018-03-29core.rotate_node: Do not trigger after_place_node (#6900)SmallJoker
2018-02-08Allow dumping userdata (#7012)you
2017-12-16Give subgames the ability to disallow specific mapgens (#6792)Ezhh
2017-12-09Pointed thing to face pos: Use 'eye height' object property (#6754)Paramat
2017-11-21core.rotate_node: Run callbacks like with any regular placed node (#6648)SmallJoker
2017-09-21Set placer to nil instead of a non-functional one in item_OnPlace (#6449)DTA7
* Set placer to nil instead of a non-functional one This requires nil checks in core.rotate_node and core.rotate_and_place.
2017-09-16Fix Rotate Node Placement (#6424)tenplus1
This properly checks for creative mode or privilege when using fixed rotate_node() function.
2017-09-12Fix core.wrap_text and make its behaviour consistent with the docssfan5
Code based on initial implementation by @dsohler.
2017-08-26Add '@n' escape sequences and some documentation on translated strings.Nathanaël Courant
2017-08-24Add clientside translations.Ekdohibs
2017-06-22Add minetest.rgba function that returns ColorString from RGBA or RGB valuesGael-de-Sailly
2017-06-09Fix sending color codes to clients that don't support them. (#5950)red-001
Also remove `disable_escape_sequences` since it's not needed anymore.
2017-06-07[CSM] Add function to get player privileges (#5933)red-001
* [CSM] Add function to get player privileges + move related help functions to common * Added @Zeno- const
2017-05-16CSM: Document forgotten functionsSmallJoker
2017-05-06Use a settings object for the main settingsShadowNinja
This unifies the settings APIs. This also unifies the sync and async registration APIs, since the async registration API did not support adding non-functions to the API table.
2017-04-19Pointed thing to face pos: Fix crash if opening door with slab or stairMarkuBu
Avoids crash caused when 'pointed thing -under' and '-above' are not face-neighbours, for example in the case of pointing to the top half of a door.
2017-04-01First commit for fine pointed (#5485)MarkuBu
2017-03-28Add functions to strip color information. (#5472)Diego Martínez
2017-03-28Fix a type bug in colorize functionLoïc Blot
This bug was introduced by dd2f1d7551bfd70357ad4f3fb180704194272147 and reported by @kilbith
2017-03-24Typo fixLoïc Blot
2017-03-24Add multiline support to colorize. (#5444)red-001
2017-03-19Block access to the `io` libraryred-001
2017-03-17Give CSM access to use `core.colorize()` (#5113)red-001
2017-03-13[CSM] Add local formspecs. (#5094)red-001
2016-11-14Revert "Adding particle blend, glow and animation (#4705)"sfan5
This reverts commit 93e3555eae2deaeca69ee252cfa9cc9c3e0e49ef.
2016-11-15Adding particle blend, glow and animation (#4705)Foghrye4
2016-10-31Core.rotate_and_place: Remove unused call to get_look_pitch()Auke Kok
2016-03-06Faster insertion into tableRui914
2015-09-23Add /emergeblocks command and core.emerge_area() Lua APIkwolekr
2015-07-21Allow random menu images for subgamessfan5
2015-06-02Fix wrong replace from previous commitest31
2015-06-01Localize inside whole misc_helpers.luaest31
2015-02-18Server: announce MIN/MAX protocol version supported to serverlist. Client: ↵est31
check serverlist Client now informs about incompatible servers from the list, this permits to prevent the protocol movements. Server announces its supported protocol versions to master server
2015-02-14Fix crash on passing false as value in table to table.copy(t)est31
Fixes #2293.
2015-01-15Simplify deleteblocks chat command argument parsingkwolekr
Add optional core.pos_to_string decimal place rounding Move core.string_to_pos to builtin/common/misc_helpers.lua for consistency
2015-01-04Fix off-by-one error in `string:split` implementation.Diego Martínez
2014-12-28Faster string.split implementation.Diego Martinez
2014-12-12Revert "Adjust the values of dirs1 and dirs2 so that rotate_and_place ↵Craig Robbins
orients textures correctly" This reverts commit 9878e8de4fdf232ebb77b396766c339786c01218. See: https://github.com/minetest/minetest/issues/1939 and IRC log for discussion
2014-12-11Fix undeclared globals in functions and shorten lines in misc_helpers.lua.paramat
2014-12-06Add Lua helper functions vector.apply(v) math.sign(x, tolerance)SmallJoker
2014-11-27Add minetest.copy_table(table) To get rid off the "table references"SmallJoker
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-11-25Adjust the values of dirs1 and dirs2 so that rotate_and_place orients ↵dvere
textures correctly According to doc/lua_api.txt if paramtype2 == "facedir" the two least significant bits of parm2 orient the texture around the axis. For dirs1 (looking at a wall) these would be 0, 1, 2, 3 and for dirs2 (looking at the ceiling) 2, 1, 0, 3
2014-11-08Fix dump() indentation with non-tab indentsShadowNinja
2014-11-08Add last_login field to auth.txtRyan Newell
Also shortens some related code and adds more parameters to string.split.
2014-09-21Make dump's output prettierShadowNinja
Changes: * Indentation with tabs by default. * Array keys dumped without "[i] = " prefix. * String keys that are valid identifiers aren't enclosed in '[""]'. * Basic support for multiple references (as specified in the comment).
2014-07-16Add srollbar formspec elementsapier