aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api
AgeCommit message (Collapse)Author
2022-05-29Fix use-after-free in node meta cleanupsfan5
bug introduced in 8908a9101608d3343023b470743ef63f1c44b0b7
2022-05-29Reject registering node with empty namesfan5
fixes #10769
2022-05-29Get rid of node metadata when it becomes emptysfan5
fixes #8943
2022-05-29Add API function to invoke player respawnsfan5
closes #12272
2022-05-29Protect a few more settings from being set from modssfan5
Of those settings main_menu_script has concrete security impact, the rest are added out of abundance of caution.
2022-05-21Deprecate game.conf name, use title instead (#12030)rubenwardy
2022-05-02Async environment for mods to do concurrent tasks (#11131)sfan5
2022-05-02Refactor some Lua API functions in preparation for async envsfan5
2022-05-02Remove some unused variable from Lua class wrapperssfan5
2022-04-28Clean up some auth packet handling related codesfan5
2022-04-10Remove unneeded ObjectRef setter return values (#12179)Lars Müller
2022-04-08Spacing fixesShadowNinja
2022-04-07Disentangle map implementations (#12148)Jude Melton-Houghton
Fixes violation of Liskov substitution principle Fixes #12144
2022-03-29Fix the documentation of InvRef:get_lists() and clean up code (#12150)DS
2022-03-26Add API to control shadow intensity from the game/mod (#11944)x2048
* Also Disable shadows when sun/moon is hidden. Fixes #11972.
2022-03-05Readd basic_debug as a HUD flag (#12020)Lars Müller
2022-03-05Allow get_sky to return a table (#11963)Zughy
2022-02-23Lua API documentation: Various fixes (#12059)SmallJoker
Change 1: Clarify when on_step collision information is provided Change 2: Document PostgreSQL and Redis settings Change 3: Overall AreaStore documentation improvements including consistent parameter naming based on community suggestions
2022-02-04Fix broken server startup if curl is disabled (#12046)sfan5
2022-01-30Use virtual paths to specify exact mod to enable (#11784)rubenwardy
2022-01-27Define control(bits) as "unset" for entities (#11995)Lars Müller
2022-01-22Allow resetting celestial vault elements by leaving its arguments empty (#11922)Zughy
2022-01-09Mainmenu game-related changes (#11887)sfan5
fixes: * Switching between games does not immediately hide creative mode / damage buttons if so specified * World creation menu has a game selection list even though the menu already provides a gamebar * Showing gameid in world list is unnecessary * Choice of mapgen parameters in menu persists between games (and was half-broken)
2022-01-09Restore pass-through of direction keys (#11924)sfan5
This moves relevant code into the PlayerControl class and gets rid of separate keyPressed variable.
2022-01-07Use a database for mod storage (#11763)Jude Melton-Houghton
2021-12-18Refactor trusted mod checking codesfan5
2021-12-18Don't let HTTP API pass through untrusted functionsfan5
This has been a problem since the first day, oops.
2021-12-18Restructure devtest's unittests and run them in CI (#11859)sfan5
2021-11-26Implemented disconnect_player (#10492)Corey Powell
Co-authored-by: rubenwardy <rw@rubenwardy.com>
2021-11-26Fix find_nodes_in_area misbehaving with out-of-map coordinates (#11770)sfan5
This ensures that no overflows (side-effects) happen within the find_nodes_in_area function by limiting coordinates like done in the map generation code.
2021-11-10Lua API: Add `rmdir`, `cpdir` and `mvdir` (#9638)Elijah Duffy
Co-authored-by: rubenwardy <rw@rubenwardy.com>
2021-10-31Fix number of tool uses being off by 1..32767 (#11110)Wuzzy
2021-10-25Fix item duplication if player dies during interact callback (alternative) ↵sfan5
(#11662)
2021-10-12Remove a few unused functions reported by callcatcher (#11658)SmallJoker
2021-10-07Move instead of copy during content install if possiblesfan5
2021-10-07Move archive extraction in content store to async jobsfan5
2021-10-07Make fs::extractZipFile thread-safesfan5
2021-10-07Add "MINETEST_MOD_PATH" environment variable (#11515)emixa-d
This adds an environment variable MINETEST_MOD_PATH. When it exists, Minetest will look there for mods in addition to ~/.minetest/mods/.
2021-10-05Fix crash when calling remove/kick/ban_player on start (#11672)Wuzzy
2021-10-05Make MetaDataRef:get return nil instead of nothing (#11666)Jude Melton-Houghton
2021-10-05Add get_server_max_lag() (#11671)Wuzzy
2021-10-01Split liquid_viscosity to liquid_viscosity and move_resistance (#10810)Wuzzy
2021-09-11Make sure relevant std::stringstreams are set to binarysfan5
2021-09-09Dynamic_Add_Media v2 (#11550)sfan5
2021-08-28Async-related script cleanupssfan5
2021-08-28Remove redundant on_dieplayer callssavilli
2021-08-27Joystick sensitivity for player movement (#11262)NeroBurner
This commit deprecates the forward, backward, left, and right binary inputs currently used for player movement in the PlayerControl struct. In their place, it adds the movement_speed and movement_direction values, which represents the player movement is a polar coordinate system. movement_speed is a scalar from 0.0 to 1.0. movement_direction is an angle from 0 to +-Pi: FWD 0 _ LFT / \ RGT -Pi/2 | | +Pi/2 \_/ +-Pi BCK Boolean movement bits will still be set for server telegrams and Lua script invocations to provide full backward compatibility. When generating these values from an analog input, a direction is considered active when it is 22.5 degrees away from either orthogonal axis. Co-authored-by: Markus Koch <markus@notsyncing.net> Co-authored-by: sfan5 <sfan5@live.de>
2021-08-21HUD: Reject and warn on invalid stat types (#11548)SmallJoker
This comes into play on older servers which do not know the "stat" type. Warnings are only logged once to avoid spam within globalstep callbacks
2021-08-19Validate staticdata and object property length limits (#11511)sfan5
Some games provide users with enough freedom to create items with metadata longer than 64KB, preventing this from causing issues is on them but we'll still do the minimum not to abort the server if this happens.
2021-07-29Add a simple PNG image encoder with Lua API (#11485)hecks
* Add a simple PNG image encoder with Lua API Add ColorSpec to RGBA converter Make a safety wrapper for the encoder Create devtest examples Co-authored-by: hecktest <> Co-authored-by: sfan5 <sfan5@live.de>