Commit graph

464 commits

Author SHA1 Message Date
Ayush Thoren a14a4542c9
Fix stale held item appearing when switching worlds (#910)
Signed-off-by: Ayush Thoren <ayushthoren@gmail.com>
2026-03-09 03:12:49 +08:00
Ayush Thoren 2f443fe333
Fix F3 debug crash when throwing ender pearl long distance (#934)
Signed-off-by: Ayush Thoren <ayushthoren@gmail.com>
2026-03-09 03:10:47 +08:00
Adem Kurt 4cec4f4500
Allow closing some menus with inventory/crafting keys (#868) 2026-03-09 03:06:01 +08:00
Ayush Thoren 45704388b6
Fix second-person nametag pitch (#963)
Signed-off-by: Ayush Thoren <ayushthoren@gmail.com>
2026-03-09 02:39:37 +08:00
kuwacom 4ad824713f update: check for the existence of GameHDD and create 2026-03-08 23:02:52 +09:00
kuwacom b31e5ce597 update: update Dedicated Server developer guide
English is machine translated.
Please forgive me.
2026-03-08 22:53:23 +09:00
kuwacom aa6692426d fix: replace shutdown flag with atomic variable for thread safety 2026-03-08 22:27:14 +09:00
kuwacom ed5bf4d376 update: added new sever files to Docker entrypoint 2026-03-08 20:37:08 +09:00
kuwacom 2979755454 fix: fixed the save logic during server shutdown
Removed redundant repeated saves and eliminated the risks of async writes.
2026-03-08 20:01:23 +09:00
kuwacom 590241c5ef fix: fix stop command shutdown process
add dedicated server shutdown request handling
2026-03-08 18:23:29 +09:00
Loki dc91a1dad0
Add Discord Invite to issue flow 2026-03-08 03:50:16 -05:00
kuwacom 8b68b81ffa add: add ban and pardon commands for Player and IP 2026-03-08 17:14:14 +09:00
Matthew Toro 3a5f1b6179
Add "Add Server" functionally to "Join Game" Menu + relocate servers.txt to servers.db. (#911)
* Add "Add Server" functionally to "Join Game" Menu + relocate servers.txt to servers.db

* enchancement: add edit and delete server functionality, solves FriendSessionInfo corruption issues
2026-03-08 03:10:15 -05:00
Alezito2008 d461012efb
fix: prevent TNT minecarts from exploding if TNT host option is disabled (#921) 2026-03-08 03:02:23 -05:00
E x o t i c 110e86ca2a
Fix missing break statement for minecarts (#930) 2026-03-08 03:00:25 -05:00
kuwacom 842ffe2760 fix: added the updated library source 2026-03-08 15:41:10 +09:00
kuwacom dca2a73d4a Merge origin/main into feature/dedicated-server
Conflict resolution summary:

- CMakeLists.txt: kept main-side C++17/build-system updates and preserved the dedicated-server target, source list, and post-build asset copy steps.
2026-03-08 15:33:00 +09:00
kuwacom 71fd1e3a62 add: significantly improved the dedicated server logging system
- add ServerLogManager to Minecraft.Server as the single entry point for dedicated-server log output
- forward CMinecraftApp logger output to the server logger when running with g_Win64DedicatedServer
- add named network logs for incoming, accepted, rejected, and disconnected connections
- cache connection metadata by smallId so player name and remote IP remain available for disconnect logs
- keep Minecraft.Client changes minimal by using lightweight hook points and handling log orchestration on the server side
2026-03-08 15:22:00 +09:00
kuwacom b250be7387 fix: Re-added the source that had somehow disappeared. 2026-03-08 13:48:46 +09:00
eh-K a865cea026
Adjust gamma calculation based on slider value (#893) 2026-03-07 22:31:20 -06:00
Marlian cfcec48ae1
Fix horse rendering: culling when looking up + fire debug texture (#899)
- Skip frustum culling for the entity the player is currently riding, preventing the horse from disappearing when looking up (fixes a bug reported on Discord)

- Fix HorseRenderer::bindTexture() to delegate to base class for single textures (fire atlas, enchant glint), only using bindTextureLayers() for multi-layer horse textures

Co-authored-by: MCbabel <MCbabel@users.noreply.github.com>
2026-03-07 22:30:44 -06:00
Loki Rautio 087b7e7abf Revert "Project modernization (#630)"
This code was not tested and breaks in Release builds, reverting to restore
functionality of the nightly. All in-game menus do not work and generating
a world crashes.

This reverts commit a9be52c41a.
2026-03-07 21:12:22 -06:00
ModMaker101 a9be52c41a
Project modernization (#630)
* Fixed boats falling and a TP glitch #266

* Replaced every C-style cast with C++ ones

* Replaced every C-style cast with C++ ones

* Fixed boats falling and a TP glitch #266

* Updated NULL to nullptr and fixing some type issues

* Modernized and fixed a few bugs

- Replaced most instances of `NULL` with `nullptr`.
- Replaced most `shared_ptr(new ...)` with `make_shared`.
- Removed the `nullptr` macro as it was interfering with the actual nullptr keyword in some instances.

* Fixing more conflicts

* Replace int loops with size_t and start work on overrides
2026-03-08 09:56:03 +07:00
kuwacom c91efe0095 update: changed file read/write operations to use FileUtils.
- As a side effect, saving has become faster!
2026-03-08 10:31:00 +09:00
kuwacom b535baa7c6 add: Dedicated Server BAN access manager with persistent player and IP bans
- add Access frontend that publishes thread-safe ban manager snapshots for dedicated server use
- add BanManager storage for banned-players.json and banned-ips.json with load/save/update flows
- add persistent player and IP ban checks during dedicated server connection handling
- add UTF-8 BOM-safe JSON parsing and shared file helpers backed by nlohmann/json
- add Unicode-safe ban file read/write and safer atomic replacement behavior on Windows
- add active-ban snapshot APIs and expiry-aware filtering for expires metadata
- add RAII-based dedicated access shutdown handling during server startup and teardown
2026-03-08 10:15:13 +09:00
kuwacom da284c1387 add: add FileUtils
Moved file operations to `utils`.
2026-03-08 10:13:36 +09:00
Vincent Zhang 1be5faaea7
bugfix: Holding CTRL key resets flying acceleration (#863) 2026-03-07 23:18:25 +00:00
TraoX_ bbe396d90d
Update to zlib 1.3.2 (#852) 2026-03-07 13:56:03 -06:00
rtm516 9cac3e0394
Change F3 rendering and add git version information (#836)
* Change F3 rendering and add git version information

* Change position, block, chunk and facing

* Limit position decimal places

* Move LCE unique to the bottom and add more java features

* Fix chunk information disappearing after y256

* Add chunk count information

* Move build number script to prebuild.ps1

* We dont need to specify vector and wstring are from std

* Restore build number to fix multiplayer

* Use short symbolic-ref

* Restore original BuildVer.h

---------

Co-authored-by: Loki <lokio.casebstv@gmail.com>
Co-authored-by: Loki Rautio <lokirautio@gmail.com>
2026-03-07 13:55:44 -06:00
Loki Rautio e5ad785803 Revert "50% - 100% increase to some mob caps. (#789)"
It's unclear if this change maintains mob density parity so it has been
reverted. This can be committed back in if parity is properly verified
2026-03-07 12:54:40 -06:00
Loki 766f5e2c57
Update CONTRIBUTING.md 2026-03-07 12:46:35 -06:00
Loki 2e21f4830d
Fix formatting issue in CONTRIBUTING.md 2026-03-07 12:08:06 -06:00
Loki 3839bf6187
Add LCE Parity guidelines to CONTRIBUTING.md 2026-03-07 12:03:20 -06:00
eh-K b3ff7f5998
50% - 100% increase to some mob caps. (#789)
* 50% increase to most mob caps, doubling some.

* Changed from 75 to 70 to match PC parity. Ambient is back to 20
2026-03-08 00:32:01 +07:00
void_17 b7bd9bb903 Move to newer C++17 language standard 2026-03-08 00:23:39 +07:00
bulkmoerls 261c7f3de0
added git lfs (#849) 2026-03-08 00:22:21 +07:00
VivyaCC 52b1882f13 win cpp23 compat: Minecraft.Client 2026-03-07 23:58:51 +07:00
VivyaCC 6dfdd90328 win cpp23 compat: Minecraft.World 2026-03-07 23:58:21 +07:00
kuwacom 49f41b8bce add: add nlohmann/json json lib 2026-03-08 01:08:23 +09:00
GuglioIsStupid 7c2869c5b9
I genuinely didn't know release and debug had seperate include dirs 😢😢😢 i suck with vs projects (#830) 2026-03-07 21:09:34 +07:00
GuglioIsStupid 220fe18487
Fix PCH (#828) 2026-03-07 20:21:37 +07:00
GuglioIsStupid 38ce933fd5
voids request - Move the filesystem files to root/ as it will be used in both Minecraft.Client and Minecraft.World (#819)
* Move Filesystem to root/include/ as per devoiders request

* Filesystem -> lce_filesystem
2026-03-07 18:36:05 +07:00
kuwacom 71cd0d3630 update: add note about issue 2026-03-07 20:24:10 +09:00
kuwacom 891052e208 add: create Minecraft.Server developer guide in English and Japanese 2026-03-07 20:18:35 +09:00
kuwacom 35f81c6e4f update: converted Japanese comments to English 2026-03-07 20:12:17 +09:00
kuwacom 83063f4b73 Merge origin/main into feature/dedicated-server
Conflict resolution summary:

- .gitignore: kept dedicated-server-specific ignore entries (tmp*/, _server_asset_probe/, server-data/) and also kept main-side entries (*.user, /out).

- Minecraft.Client/Common/Network/GameNetworkManager.cpp: kept int64_t seed from main and preserved dedicatedNoLocalHostPlayer logic from dedicated-server.

- Minecraft.Client/Windows64/Network/WinsockNetLayer.cpp: preserved dedicated-server shutdown flow and also included main-side cleanup for s_smallIdToSocketLock.
2026-03-07 19:39:52 +09:00
kuwacom dd10c2526a fix: return client to menus when Win64 host connection drops
- Add client-side host disconnect handling in CPlatformNetworkManagerStub::DoWork() for _WINDOWS64.
- When in QNET_STATE_GAME_PLAY as a non-host and WinsockNetLayer::IsConnected() becomes false, trigger g_NetworkManager.HandleDisconnect(false) to enter the normal disconnect/UI flow.
- Use m_bLeaveGameOnTick as a one-shot guard to prevent repeated disconnect handling while the link remains down.
- Reset m_bLeaveGameOnTick on LeaveGame(), HostGame(), and JoinGame() to avoid stale state across sessions.
2026-03-07 18:39:31 +09:00
kuwacom 4bb18290fc fix: send DisconnectPacket on shutdown and fix Win64 recv-thread teardown race
Before this change, server/host shutdown closed sockets directly in
ServerConnection::stop(), which bypassed the normal disconnect flow.
As a result, clients could be dropped without receiving a proper
DisconnectPacket during stop/kill/world-close paths.

Also, WinsockNetLayer::Shutdown() could destroy synchronization objects
while host-side recv threads were still exiting, causing a crash in
RecvThreadProc (access violation on world close in host mode).
2026-03-07 18:23:34 +09:00
ModMaker101 e754bad17e
Improve gamma shader parity - fixes #611 (#790)
* Call gamma post process after `ui.render` #611

* Fixed "washed out" look.

* Improve gamma pass and cache viewport size
2026-03-07 03:00:38 -06:00
Kevin cc85ecf05a
Block sneak while chat is open. (#803) 2026-03-07 02:57:20 -06:00