aboutsummaryrefslogtreecommitdiff
path: root/src/script/common
Commit message (Collapse)AuthorAge
* Inventory: Make addList() consistent (#11382)SmallJoker2021-06-30
| | | | Fixes list clearing for inv:set_list() using same size, since 2db6b07. addList() now clears the list in all cases. Use setSize() to resize without clearing.
* Inventory: show error on invalid list names (#11368)SmallJoker2021-06-20
|
* Add metatables to lua vectors (#11039)DS2021-06-04
| | | Add backwards-compatible metatable functions for vectors.
* fix: some code tidy about includes & irr namespacesLoic Blot2021-05-03
|
* refacto: Hud: make driver, client, player, inventory, tsrc private & drop ↵Loic Blot2021-05-03
| | | | | | unused guienv also fix c_content.h, on client it includes the src/client/hud.h instead of src/hud.h, which leads to wrong file dependency on the lua stack
* Degrotate support for mesh nodes (#7840)Vitaliy2021-03-30
|
* Use place_param2 client-side for item appearance & prediction (#11024)sfan52021-03-09
|
* Add nametag background setting and object property (#10937)rubenwardy2021-02-17
|
* Fix short_description fallback order (#10943)rubenwardy2021-02-17
|
* Rework use_texture_alpha to provide three opaque/clip/blend modessfan52021-01-29
| | | | | The change that turns nodeboxes and meshes opaque when possible is kept, as is the compatibility code that warns modders to adjust their nodedefs.
* Drop never documented 'alpha' property from nodedefsfan52021-01-29
| | | | | Includes minimal support code for practical reasons. We'll need it for a slightly different purpose next commit.
* Removed some obsolete code (#10562)Zughy2021-01-21
| | | Co-authored-by: Zughy <4279489-marco_a@users.noreply.gitlab.com>
* Fix ObjectRef errors due to lua_isnil() (#10564)Zughy2020-11-04
| | | Treat 'none' values as 'nil'
* Fix segfault in deprecation logging due to tail call, log by default (#10174)rubenwardy2020-10-31
|
* Decouple entity minimap markers from nametags replacing with show_on_minimap ↵sfan52020-10-19
| | | | property (#10443)
* Pass ContentFeatures as reference to read_content_features (#10464)JosiahWI2020-10-13
|
* Add a short_description to be used by mods (#8980)DS2020-10-09
|
* Remove unused functions reported by cppcheck (#10463)SmallJoker2020-10-05
| | | | | | | Run unused functions reported by cppcheck This change removes a few (but not all) unused functions. Some unused helper functions were not removed due to their complexity and potential of future use.
* Fix precision not working in hud_change (#10186)Lars Müller2020-08-12
|
* Quick workaround for crashing destructor on Mingw32sfan52020-07-09
| | | | closes #10137
* Make shading of CAOs optional (#10033)Danila Shutov2020-06-16
|
* Lua API: Log incorrect parameter types as error (#9954)SmallJoker2020-06-01
| | | | | Incorrect parameter types are logged as errors, taking coercion into account. This is a workaround to ensure mod compatibility. Duplicate warnings are ignored per server instance.
* CSM: Fix crashing minetest.get_item_def()sfan52020-05-20
| | | | fixes #9884
* Rework functionality of leveled nodes (#9852)Wuzzy2020-05-19
| | | | Co-authored-by: sfan5 <sfan5@live.de> Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
* Damage texture modifier (#9833)Lars Müller2020-05-11
| | | Adds a new object property "damage_texture_modifier"
* Add support for statbar “off state” icons (#9462)Wuzzy2020-05-11
| | | | | | | This adds support for optional “off state” icons for statbars. “off state icons” can be used to denote the lack of something, like missing hearts or bubbles. Add "off state" textures to the builtin statbars. Co-authored-by: SmallJoker <mk939@ymail.com>
* Expose collided objects in moveresultsfan52020-05-06
| | | | closes #9787
* Rename moveresult speed to velocitySmallJoker2020-05-05
|
* Expose collision information to LuaEntity on_stepsfan52020-04-27
|
* Script: Enforce type checks if not nil (#9748)SmallJoker2020-04-27
| | | | * Script: Enforce type checks if not nil
* Fix configuration caching in log_deprecated (#9697)HybridDog2020-04-22
| | | | | | * Fix configuration caching in log_deprecated The configured variable was never set to true. I've set the variables to thread_local because the configuration should be reloaded after reentering the world from mainmenu.
* Fix parsing JSON with large integers (#9674)sfan52020-04-15
|
* scriptapi: Some small optimizations to value pushing (#9669)sfan52020-04-14
|
* Improve waypoints and add image variant (#9480)Lars Müller2020-04-11
|
* Fix broken config check in 659245asfan52020-04-11
|
* Move PlayerSAO to dedicated filesLoic Blot2020-04-11
|
* Move serveractiveobject & unitsaoLoic Blot2020-04-11
| | | | | Move serverobject.{cpp,h} to server/serveractiveobject.{cpp,h} Move UnitSAO class to dedicated files
* Work around LuaJIT issues on aarch64 (#9614)sfan52020-04-08
| | | | - Move the text segment below the 47-bit limit, needed for script_exception_wrapper which must be lightuserdata - Replace CUSTOM_RIDX_SCRIPTAPI with full userdata
* Fix 'the the' typos in comments (#9554)LNJ2020-04-04
|
* set_sky improvements, set_sun, set_moon and set_starsJordach2020-03-05
|
* Move core.get_connected_players() implementation to C++sfan52020-02-23
| | | | | Keeping the ObjectRefs around in a table isn't ideal and this allows removing the somewhat nonsensical is_player_connected() added in 86ef7147.
* Refactor Script API's log_deprecatedsfan52020-02-23
|
* Improve core.sound_play with ephemeral sounds and player exclusionsfan52020-02-01
|
* Remove unused weight property from objects (#9320)Wuzzy2020-01-22
|
* Add z-index management to HUDPierre-Yves Rollo2019-12-06
|
* Change some usages of "deprecated" to "obsolete" (#9062)random-geek2019-10-29
| | | | "Deprecated" means that something is still in use, but is unsupported and needs to be removed. "Obsolete" means it is already out of use.
* Punchwear (improved) (#8959)sfan52019-09-22
|
* Do not add group values of zero to group lists. (#8751)Beha2019-08-07
| | | | | | | | | | This fixes an issue where when the engine looked up groups (for example, in ABM node names), NodeDefManager's m_group_to_items would contain nodes with a group value of zero, resulting in nodes with flammable = 0 being burned by a fire mod with a group:flammable checking ABM. It brings consistency to the behaviour described in the api documentation, where zero and nil groups should be the same.
* Move the clamping of hp/breath when their maximums change to ↵Beha2019-07-30
| | | | | read_object_properties(). (#8689) This prevents set_properties() calls that have nothing to do with hp_max or breath_max overriding the saved hp before another mod has the chance to set a player's intended hp_max (such as in on_joinplayer).
* HTTP API: Allow binary downloads and headers (#8573)SmallJoker2019-06-06
| | | | Add minetest.features.httpfetch_binary_data