Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Clean up some auth packet handling related code | sfan5 | 2022-04-28 | 1 | -14/+10 |
| | |||||
* | Fix password changing getting stuck if wrong password is entered once | sfan5 | 2022-04-28 | 1 | -0/+2 |
| | |||||
* | Apply disallow_empty_password to password changes too | sfan5 | 2022-04-28 | 1 | -3/+13 |
| | |||||
* | Fix race condition in registration leading to duplicate create_auth calls | sfan5 | 2022-04-28 | 1 | -1/+12 |
| | |||||
* | Clean up ClientReady packet handling | sfan5 | 2022-02-17 | 1 | -32/+24 |
| | | | | fixes #12073 | ||||
* | Clean up ClientInterface locking | Jude Melton-Houghton | 2022-02-03 | 1 | -2/+1 |
| | |||||
* | Don't call on_dieplayer callback two times (#11874) | savilli | 2022-01-15 | 1 | -2/+1 |
| | |||||
* | Restore pass-through of direction keys (#11924) | sfan5 | 2022-01-09 | 1 | -8/+1 |
| | | | This moves relevant code into the PlayerControl class and gets rid of separate keyPressed variable. | ||||
* | Fix check that denies new clients from a singleplayer session | savilli | 2021-12-28 | 1 | -1/+1 |
| | |||||
* | Fix number of tool uses being off by 1..32767 (#11110) | Wuzzy | 2021-10-31 | 1 | -3/+4 |
| | |||||
* | Fix item duplication if player dies during interact callback (alternative) ↵ | sfan5 | 2021-10-25 | 1 | -18/+26 |
| | | | | (#11662) | ||||
* | Fix player HP desync between client and server | savilli | 2021-10-12 | 1 | -1/+2 |
| | |||||
* | Dynamic_Add_Media v2 (#11550) | sfan5 | 2021-09-09 | 1 | -4/+30 |
| | |||||
* | Remove redundant on_dieplayer calls | savilli | 2021-08-28 | 1 | -16/+0 |
| | |||||
* | Joystick sensitivity for player movement (#11262) | NeroBurner | 2021-08-27 | 1 | -4/+0 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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> | ||||
* | Block & report player self-interaction (#11137) | Lars Müller | 2021-03-30 | 1 | -0/+6 |
| | |||||
* | Check for duplicate login in TOSERVER_INIT handler (#11017) | Elias Fleckenstein | 2021-03-19 | 1 | -0/+10 |
| | | | i.e. checks for duplicate logins before sending all media data to the client. | ||||
* | Protect dropping from far node inventories | SmallJoker | 2021-03-07 | 1 | -24/+23 |
| | | | | Also changes if/if to switch/case | ||||
* | Protect per-player detached inventory actions | SmallJoker | 2021-03-07 | 1 | -1/+5 |
| | |||||
* | Server-side authority for attached players (#10952) | SmallJoker | 2021-02-15 | 1 | -2/+6 |
| | | | The server must have authority about attachments. This commit ignores any player movement packets as long they're attached. | ||||
* | Encode high codepoints as surrogates to safely transport wchar_t over network | sfan5 | 2021-02-02 | 1 | -14/+1 |
| | | | | fixes #7643 | ||||
* | Drop wide/narrow conversion functions | sfan5 | 2021-02-02 | 1 | -5/+3 |
| | | | | | | | | | The only valid usecase for these is interfacing with OS APIs that want a locale/OS-specific multibyte encoding. But they weren't used for that anywhere, instead UTF-8 is pretty much assumed when it comes to that. Since these are only a potential source of bugs and do not fulfil their purpose at all, drop them entirely. | ||||
* | Server GotBlocks(): Lock clients to avoid multithreading issues | SmallJoker | 2021-02-02 | 1 | -2/+4 |
| | |||||
* | Cache client IP in RemoteClient so it can always be retrieved (#10887) | sfan5 | 2021-01-31 | 1 | -5/+6 |
| | | | specifically: after the peer has already disappeared | ||||
* | Fix some minor code issues all over the place | sfan5 | 2020-12-24 | 1 | -1/+1 |
| | |||||
* | serverpackethandler: Minor log message fixes | sfan5 | 2020-11-12 | 1 | -7/+6 |
| | | | | closes #10434 | ||||
* | Fix object interaction distance not being checked (#10547) | rubenwardy | 2020-11-09 | 1 | -6/+7 |
| | |||||
* | Inventory: Protect Craft and Drop actions (#10353) | SmallJoker | 2020-09-07 | 1 | -44/+35 |
| | | | Change dangerous pointer to unique_ptr for automated deletion. | ||||
* | Prevent interacting with items out of the hotbar (#10359) | Lejo | 2020-09-04 | 1 | -1/+20 |
| | |||||
* | [2] Code cleanup in serverpackethandler (#9349) | HybridDog | 2020-09-01 | 1 | -199/+180 |
| | | | | | | * Code cleanup in serverpackethandler * do not define p_under unless a node is pointed * use switch-case and reduce indentation | ||||
* | Prevent players accessing inventories of other players (#10341) | Lars Müller | 2020-08-29 | 1 | -7/+13 |
| | |||||
* | Allow binding dig, place actions to keys; remove LMB/RMB hardcoding | ANAND | 2020-08-15 | 1 | -11/+12 |
| | | | | Co-authored-by: Sam Caulfield <sam@samcaulfield.com> | ||||
* | Exposing the zoom key to Lua API (#9903) | Lars Müller | 2020-06-13 | 1 | -0/+1 |
| | | | Co-authored-by: Raul Ferriz <raul.ferriz@gmail.com> | ||||
* | Add on_authplayer callback and 'last_login' to on_joinplayer (#9574) | sorcerykid | 2020-05-23 | 1 | -21/+23 |
| | | | | | | Replace on_auth_fail callback with more versatile on_authplayer Better clarify account login process in Lua API documentation Change initial timestamp for newly registered accounts to -1 | ||||
* | Log protocol ver on mismatched client connect too | sfan5 | 2020-05-16 | 1 | -2/+2 |
| | |||||
* | Server class code cleanups (#9769) | Loïc Blot | 2020-05-07 | 1 | -5/+6 |
| | | | | | | | | | | | | | | | | | | | * 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. | ||||
* | Server: Improve some log messages (#9820) | sfan5 | 2020-05-05 | 1 | -9/+7 |
| | |||||
* | Add server side translations capability (#9733) | EvidenceB Kidscode | 2020-04-25 | 1 | -0/+3 |
| | | | | * Add server side translations capability | ||||
* | serverpackethandler: Reduce pkt->getPeerId() invocations and more (#9689) | HybridDog | 2020-04-18 | 1 | -341/+272 |
| | |||||
* | Move PlayerSAO to dedicated files | Loic Blot | 2020-04-11 | 1 | -1/+1 |
| | |||||
* | Fixes around ServerActiveObject on_punch handling | sfan5 | 2020-03-05 | 1 | -0/+2 |
| | |||||
* | Call on_secondary_use when object is right-clicked | sfan5 | 2019-11-10 | 1 | -1/+10 |
| | |||||
* | Fix broken build | sfan5 | 2019-09-23 | 1 | -2/+2 |
| | | | The variable name changed but this didn't cause merge conflicts, so it wasn't caught before. | ||||
* | Punchwear (improved) (#8959) | sfan5 | 2019-09-22 | 1 | -1/+5 |
| | |||||
* | Wieldhand: Specify which ItemStack to use (#8961) | SmallJoker | 2019-09-21 | 1 | -17/+20 |
| | | | Makes 'get_wield_item' to return the "main" ItemStack | ||||
* | Remove incorrect MutexAutoLock | sfan5 | 2019-09-19 | 1 | -5/+1 |
| | | | | | The line declared a variable "m_con" instead of locking m_con. getClient() doesn't need this anyway, so remove it. | ||||
* | Send ActiveObjects once right after Init2 | ANAND | 2019-09-14 | 1 | -7/+19 |
| | |||||
* | Formspecs: Introduce formspec_version to mods | SmallJoker | 2019-09-14 | 1 | -0/+3 |
| | |||||
* | Send cumulated inventory changes only each step (#8856) | SmallJoker | 2019-09-09 | 1 | -9/+6 |
| | | | | Applies to player and detached inventories | ||||
* | Inventory: Send dirty lists where appropriate (#8742) | SmallJoker | 2019-08-24 | 1 | -4/+4 |
| | | | | | This change reduces the amount of sent data towards clients. Inventory lists that are already known to the player are skipped, saving quite some data over time. Raises protocol version to 38 to ensure correct backwards-compatible code. |