aboutsummaryrefslogtreecommitdiff
path: root/builtin/common/misc_helpers.lua
AgeCommit message (Collapse)Author
2022-06-07Merge branch 'master' of https://github.com/minetest/minetestElias Fleckenstein
2022-06-06core.formspec_escape: Restore backwards compatLars Müller
Support numbers as arguments by using `string.gsub(text, ...)` instead of `text:gsub(...)` which will coerce `text` to a string
2022-06-02Merge branch 'master' of https://github.com/minetest/minetestElias Fleckenstein
2022-05-27Builtin: Optimize misc helpers (#12377)Lars Müller
Also add formspec_escape unit test
2022-05-22Add relative numbers for commands by prepending ~ (#9588)Wuzzy
* Add relative numbers for commands by prepending ~ * Some builtin code cleanup * Disallow nan and inf in minetest.string_to_area * Remove unused local variable teleportee (makes Luacheck happy) * Clean up core.string_to_pos * Make area parsing less permissive * Rewrite tests as busted tests * /time: Fix negative minutes not working Co-authored-by: Lars Mueller <appgurulars@gmx.de>
2022-05-17Merge branch 'master' of https://github.com/minetest/minetestElias Fleckenstein
2021-10-07Move archive extraction in content store to async jobsfan5
2021-09-19Merge branch 'master' of https://github.com/minetest/minetestElias Fleckenstein
2021-08-27Optimize vector length calculations (#11549)Lean Rada
2021-06-04Add metatables to lua vectors (#11039)DS
Add backwards-compatible metatable functions for vectors.
2021-05-13Merge branch 'master' of https://github.com/minetest/minetestElias Fleckenstein
2021-05-11Include tile definitions in get_node_def; Client-side minetest.object_refs tableElias Fleckenstein
2021-04-02Add `math.round` and fix `vector.round` (#10803)Vincent Robinson
2021-01-07Merge branch 'master' of https://github.com/minetest/minetestElias Fleckenstein
2020-12-24Fix minetest.is_nanLars Mueller
2020-12-12Make GitHub Actions Happy try 2Elias Fleckenstein
2020-12-12Make GitHub Actions Happy try 1Elias Fleckenstein
2020-10-18Extended ClientObjectRef; Improved CrystalPvPElias Fleckenstein
2020-10-17New Mod SystemElias Fleckenstein
2020-07-18Update to minetest 5.4.0-devElias Fleckenstein
2020-06-23testElias Fleckenstein
2020-06-09LuaItemStack: Add __tostring metamethod (#8785)Paul Ouellette
* LuaItemStack: Add __tostring metamethod * Clean up LuaItemStack::checkobject
2020-05-29Add minetest.is_creative_enabledWuzzy
2020-05-13Allow placing auto-rotating nodes on other nodes in on_rightclick (#9859)Yaman Qalieh
2020-03-06Cleanup global namespace pollution in builtin (#9451)Wuzzy
2020-02-01Add table.shuffle (#8299)HybridDog
2020-01-18Add Lua unit tests to builtin using busted (#9184)rubenwardy
2020-01-04Add table.key_value_swap (#9248)HybridDog
2019-10-13Fix rotate_node to return the correct itemstack.Aaron Suen
All on_* hooks that return an itemstack are NOT guaranteed to modify and return the original stack. We cannot count on the behavior of the existing builtin definitions not to be overridden by game/mod logic.
2019-08-06Add luacheck to check builtin (#7895)rubenwardy
2019-03-05Add math.factorial (#8298)HybridDog
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.