aboutsummaryrefslogtreecommitdiff
path: root/src/server
AgeCommit message (Collapse)Author
2023-03-07Dual wieldingLizzy Fleckenstein
2022-12-24Make MapEditEvent more completeJude Melton-Houghton
SetBlocksNotSent is no longer used.
2022-11-23avoid clearChildAttachments iterator invalidation (#12987)Jude Melton-Houghton
2022-10-30Allow rotating entity selectionboxes (#12379)Lars Müller
2022-09-26Avoid duplication of mod metadata in memory (#12562)Jude Melton-Houghton
Co-authored-by: sfan5 <sfan5@live.de>
2022-09-20Fix formula used for acceleration (#12353)Lars Müller
2022-08-19Prevent loading a world with unresolved dependencies (#12542)rubenwardy
2022-08-12Physics overrides: Move values to a common struct (#12591)SmallJoker
Co-authored-by: sfan5 <sfan5@live.de>
2022-07-30Fix some warnings (#12615)rubenwardy
2022-07-29Fix media overriding regression (#12602)Lars Müller
2022-07-14Refactor ModConfigurationrubenwardy
2022-07-14Move f1000 sanitizing to the places that still use this typesfan5
2022-06-11on_deactivate: distinguish removal and unloading (#11931)Lars Müller
Sometimes you need to be able to do removal-related cleanup, such as removing files from disk, or entries from a database. staticdata obviously isn't suitable for large data. The data shouldn't be removed if the entity is unloaded, only if it is removed.
2022-06-11No damage effects on hp_max change (#11846)Lars Müller
2022-06-07Sanitize player position and speed server-side (#12396)sfan5
2022-05-29Handle lua entity HP changes correctly (like punches)sfan5
fixes #11975
2022-04-08Fix compiler warningsShadowNinja
2022-01-30Use virtual paths to specify exact mod to enable (#11784)rubenwardy
2022-01-15Don't call on_dieplayer callback two times (#11874)savilli
2022-01-04Inventory: Add ServerEnv checks for calls during script initSmallJoker
This fixes 'minetest.get_inventory' calls to players or nodes during the load phase.
2021-12-06Fix get_bone_position() on unset bones modifying their positionsfan5
closes #11840
2021-10-31Fix number of tool uses being off by 1..32767 (#11110)Wuzzy
2021-10-20Add no_texture.png as fallback for unspecified texturesWuzzy
2021-10-12Fix player HP desync between client and serversavilli
2021-08-28Remove redundant on_dieplayer callssavilli
2021-07-31Mods: Combine mod loading checks and deprection logging (#11503)SmallJoker
This limits the logged deprecation messages to the mods that are loaded Unifies the mod naming convention check for CSM & SSM
2021-07-10Script API: Fix segfault in remove_detached_inventorySmallJoker
when minetest.remove_detached_inventory is called on script init, the environment is yet not set up, hence m_env is still nullptr until all scripts are loaded
2021-05-29UnitSAO: Prevent circular attachmentsSmallJoker
2021-04-13Attachments: Avoid data loss caused by set_attach() in callbacks (#11181)SmallJoker
2021-03-07Protect per-player detached inventory actionsSmallJoker
2021-02-23Allow overwriting media files of dependencies (#10752)DS
2021-02-15Server-side authority for attached players (#10952)SmallJoker
The server must have authority about attachments. This commit ignores any player movement packets as long they're attached.
2021-02-12Send attachments instantly before set_pos (#10235)SmallJoker
2021-01-22Remove dead code (#10845)rubenwardy
2021-01-21Removed some obsolete code (#10562)Zughy
Co-authored-by: Zughy <4279489-marco_a@users.noreply.gitlab.com>
2021-01-11Implement on_rightclickplayer callback (#10775)JDiaz
Co-authored-by: rubenwardy <rw@rubenwardy.com>
2021-01-02Add on_deactivate callback for luaentities (#10723)hecks
2020-12-29Add minetest.get_objects_in_area (#10668)Elias Fleckenstein
2020-11-12PlayerSAO: Run on_player_hpchange raw change values (#10478)SmallJoker
The callback is only run when a change in HP is to be expected. Following cases will not trigger the callback: * Dead player damaged further * Healing full-health player * Change of 0 HP
2020-10-19Implement unloading of static_save=false objects according to existing docs ↵sfan5
(#10485)
2020-10-19Decouple entity minimap markers from nametags replacing with show_on_minimap ↵sfan5
property (#10443)
2020-10-04Add First Person Attachments (#10360)Jordan Snelling
Fixes some other third person camera specific attachments. Implements a single new flag for entities to be forced visible in first person mode. Old mods do not need to be updated to use the new flag and are fully backwards compatible.
2020-10-01(se)SerializeString: Include max length in the nameSmallJoker
This commit clarifies the maximal length of the serialized strings. It will avoid accidental use of serializeString() when a larger string can be expected. Removes unused Wide String serialization functions
2020-09-26Patch fast/teleport vulnerability when attached to an entity (#10340)Elias Fleckenstein
2020-08-20Load media from subfolders (#9065)DS
2020-06-04Move shared parameters sending to UnitSAO (#9968)SmallJoker
Better header sorting by topic Make UnitSAO-specific parameters private Skip redundant recursive entity sending code (since ~5.2.0)
2020-05-29Clean up CAO nametag handling and remove deprecated AO_CMDsfan5
AO_CMD_UPDATE_NAMETAG_ATTRIBUTES was deprecated in 9eee3c3f465c071bb9908749cf48be3c131a1bdf (0.4.14)
2020-05-27Value copy / allocation optimizations mostly in server, SAO and serialize codesfan5
2020-05-07Server class code cleanups (#9769)Loïc Blot
* Server::overrideDayNightRatio doesn't require to return bool There is no sense to sending null player, the caller should send a valid object * Server::init: make private & cleanup This function is always called before start() and loads some variables which can be loaded in constructor directly. Make it private and call it directly in start * Split Server inventory responsibility to a dedicated object This splits permit to found various historical issues: * duplicate lookups on player connection * sending inventory to non related player when a player connects * non friendly lookups on detached inventories ownership This reduce the detached inventory complexity and also increased the lookup performance in a quite interesting way for servers with thousands of inventories.
2020-05-05Server: Improve some log messages (#9820)sfan5