aboutsummaryrefslogtreecommitdiff
path: root/src/script/common
AgeCommit message (Collapse)Author
2022-05-30Invalid float vector dimension range: clamp and warn instead of crashclampElias Fleckenstein
2022-05-26Reduce size of ContentFeatures structuresfan5
On my system this is a reduction from 4664 to 3704 bytes. This is not for the sake of saving RAM but ensuring commonly used structures fit into caches better.
2022-05-10Use native packer to transfer globals into async env(s)sfan5
2022-05-10Support packing arbitrary graphs (#12289)Jude Melton-Houghton
2022-05-04hud_get: Return precision field for waypoints (#12215)Lars Müller
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-03-29Store vector metatable in registryJude Melton-Houghton
2022-03-29Fix the documentation of InvRef:get_lists() and clean up code (#12150)DS
2022-02-08Remove awful Mingw32 workaroundssfan5
Instead a warning is triggered if an affected compiler is detected. closes #12022
2022-02-04Fix types of get_mapgen_setting_noiseparams (#12025)Lars Müller
2021-12-18Don't let HTTP API pass through untrusted functionsfan5
This has been a problem since the first day, oops.
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-10Clean up/improve some scriptapi error handling codesfan5
2021-08-28Remove redundant on_dieplayer callssavilli
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-07-27Add bold, italic and monospace font styling for HUD text elements (#11478)sfan5
Co-authored-by: Elias Fleckenstein <eliasfleckenstein@web.de>
2021-06-30Inventory: Make addList() consistent (#11382)SmallJoker
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.
2021-06-20Inventory: show error on invalid list names (#11368)SmallJoker
2021-06-04Add metatables to lua vectors (#11039)DS
Add backwards-compatible metatable functions for vectors.
2021-05-03fix: some code tidy about includes & irr namespacesLoic Blot
2021-05-03refacto: Hud: make driver, client, player, inventory, tsrc private & drop ↵Loic Blot
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
2021-03-30Degrotate support for mesh nodes (#7840)Vitaliy
2021-03-09Use place_param2 client-side for item appearance & prediction (#11024)sfan5
2021-02-17Add nametag background setting and object property (#10937)rubenwardy
2021-02-17Fix short_description fallback order (#10943)rubenwardy
2021-01-29Rework use_texture_alpha to provide three opaque/clip/blend modessfan5
The change that turns nodeboxes and meshes opaque when possible is kept, as is the compatibility code that warns modders to adjust their nodedefs.
2021-01-29Drop never documented 'alpha' property from nodedefsfan5
Includes minimal support code for practical reasons. We'll need it for a slightly different purpose next commit.
2021-01-21Removed some obsolete code (#10562)Zughy
Co-authored-by: Zughy <4279489-marco_a@users.noreply.gitlab.com>
2020-11-04Fix ObjectRef errors due to lua_isnil() (#10564)Zughy
Treat 'none' values as 'nil'
2020-10-31Fix segfault in deprecation logging due to tail call, log by default (#10174)rubenwardy
2020-10-19Decouple entity minimap markers from nametags replacing with show_on_minimap ↵sfan5
property (#10443)
2020-10-13Pass ContentFeatures as reference to read_content_features (#10464)JosiahWI
2020-10-09Add a short_description to be used by mods (#8980)DS
2020-10-05Remove unused functions reported by cppcheck (#10463)SmallJoker
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.
2020-08-12Fix precision not working in hud_change (#10186)Lars Müller
2020-07-09Quick workaround for crashing destructor on Mingw32sfan5
closes #10137
2020-06-16Make shading of CAOs optional (#10033)Danila Shutov
2020-06-01Lua API: Log incorrect parameter types as error (#9954)SmallJoker
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.
2020-05-20CSM: Fix crashing minetest.get_item_def()sfan5
fixes #9884
2020-05-19Rework functionality of leveled nodes (#9852)Wuzzy
Co-authored-by: sfan5 <sfan5@live.de> Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
2020-05-11Damage texture modifier (#9833)Lars Müller
Adds a new object property "damage_texture_modifier"
2020-05-11Add support for statbar “off state” icons (#9462)Wuzzy
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>
2020-05-06Expose collided objects in moveresultsfan5
closes #9787
2020-05-05Rename moveresult speed to velocitySmallJoker
2020-04-27Expose collision information to LuaEntity on_stepsfan5
2020-04-27Script: Enforce type checks if not nil (#9748)SmallJoker
* Script: Enforce type checks if not nil
2020-04-22Fix configuration caching in log_deprecated (#9697)HybridDog
* 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.
2020-04-15Fix parsing JSON with large integers (#9674)sfan5