Commit Graph

233 Commits

Author SHA1 Message Date
Snowiiii
f970c4bc12 Minior Code cleanups 2024-10-14 12:01:35 +02:00
Snowiiii
acc5aca0ff Fix: clippy 2024-10-13 18:59:20 +02:00
Snowiiii
018ee7c583 CI: Export executable 2024-10-13 18:57:13 +02:00
Snowiiii
533357ceaa Fix: kick in player state when client fails 2024-10-13 15:17:09 +02:00
Snowiiii
47f149d154 Support custom authentication servers 2024-10-13 12:15:16 +02:00
Snowiiii
bcbde20623 Make Logging configurable 2024-10-11 16:41:52 +02:00
Snowiiii
9ac4bdbd50 Add Living Entity struct 2024-10-11 12:54:42 +02:00
Snowiiii
b5452245d8 Convert packets matches into their functions 2024-10-11 11:43:58 +02:00
Alexander Medvedev
4967e9aa37 New clipps lints 2024-10-08 20:02:56 +01:00
kralverde
b7b975a064 rebase block_id 2024-09-28 17:39:11 -04:00
Snowiiii
fff7357756 Fix: Auth 2024-09-28 13:23:08 +02:00
Snowiiii
1ddaca1406 Allow disable encryption 2024-09-28 13:03:31 +02:00
lukas0008
5823f328e6 Merge pull request #104 from Bryntet/keepalive
Add keep alive packets
2024-09-23 19:04:48 +02:00
Edvin Bryntesson
cda86fd59e add keep alive packets 2024-09-22 18:01:27 +02:00
Snowiiii
14a13435c1 less clones 2024-09-19 23:13:45 +02:00
StripedMonkey
e9a55cf976 misc spelling fixes in comments and variables 2024-09-19 03:04:01 -04:00
lukas0008
810ecbeb1f Make Pumpkin work again 2024-09-17 23:50:56 +02:00
StripedMonkey
c13261ba20 standardize use of compact serialization for UUIDs. 2024-09-12 18:02:55 -04:00
StripedMonkey
c4dc376bc9 extract server status publishing into its own file 2024-09-12 18:02:32 -04:00
StripedMonkey
e7fc40632d extract authentication client v2 2024-09-12 17:55:06 -04:00
Snowiiii
f9bf750b65 Add Clientbound Entity Status 2024-09-12 15:42:26 +02:00
Asurar0
df07029671 Merge remote-tracking branch 'Snowiiii/master' into sync_primitives_improvements 2024-09-12 14:23:07 +02:00
Snowiiii
0bebc6fc31 Better doc 2024-09-12 12:33:33 +02:00
Asurar0
2e99877a6c fix warnings 2024-09-11 23:01:09 +02:00
Asurar0
d176fbd37e fix fmt 2024-09-11 22:56:03 +02:00
Asurar0
c6043189d3 Improved synchronization primitives
- Replaced all `std::sync::Mutex` by `parking_lot::Mutex` and refactored implementation accordingly
- Replaced all `Mutex<T> where T: Copy` by `crossbeam::AtomicCell<T>` and refactored implementation accordingly
2024-09-11 22:39:53 +02:00
Snowiiii
ada0d82a72 Added Container back 2024-09-10 09:57:54 +02:00
Snowiiii
e5bfbce2ce Fix dead locks 2024-09-09 23:22:55 +02:00
Snowiiii
58831cd0c9 Fix: Format 2024-09-09 21:14:22 +02:00
Snowiiii
c8fee9b23c Try to solve Pumpkin's locking problem 2024-09-09 21:12:49 +02:00
lukas0008
08743d18ee Merge branch 'master' into server-cleanup 2024-09-08 17:45:54 +02:00
lukas0008
fa114e7e23 Cleanup Server struct
This cleanup's goal is to make all `Server` functions only require &self. This means that `Server` can now be a `Arc<Server>` instead of `Arc<Mutex<Server>>`, which solves a lot of deadlock problems.
2024-09-08 17:44:09 +02:00
Snowiiii
6a756174c7 Fix: clippy 2024-09-08 17:17:35 +02:00
Snowiiii
c6f561ebe3 Fix format 2024-09-08 17:09:35 +02:00
lukas0008
f23592de8c Fixed weird ide error 2024-09-08 16:48:37 +02:00
Snowiiii
af0abccfc0 Don't todo 2024-09-08 16:30:46 +02:00
Snowiiii
e8edb0e71a Fix: build 2024-09-08 15:59:46 +02:00
Alexander Medvedev
8b29d9e763 Merge pull request #60 from Bryntet/master
Add packet SClickContainer and abstractions
2024-09-08 14:50:50 +01:00
Snowiiii
39b4cb3ac9 Move world into entity
Also fixes most of error when leaving while chunks are loading
2024-09-07 22:39:42 +02:00
Edvin Bryntesson
33a5a10f34 Merge branch 'master' into master 2024-09-07 20:42:52 +02:00
Snowiiii
3d14e1310b Command system rewrite
Note: Help commands is currently disabled
2024-09-07 20:26:19 +02:00
Snowiiii
2ee9710f93 Refactor Entity 2024-09-07 19:33:01 +02:00
Edvin Bryntesson
59a950c606 a bit of refactor, and actually enforce player inventory condition rules on handle_item_change 2024-09-07 18:13:38 +02:00
Edvin Bryntesson
3b6fc48a0f add error handling to Click functions 2024-09-07 16:31:24 +02:00
Edvin Bryntesson
72d95cd416 Merge branch 'master' into master 2024-09-06 21:55:47 +02:00
Edvin Bryntesson
3b93892f26 start trying to drag, it doesn't work though 2024-09-06 21:50:23 +02:00
Edvin Bryntesson
2acd1ed02a refactored state_id to PlayerInventory 2024-09-06 17:53:23 +02:00
DaniD3v
12e3732765 Replaced #[allow()]'s with #[expect()] 2024-09-06 11:20:53 +02:00
DaniD3v
e08309aacd Removed unused #[allow()]'s 2024-09-06 11:19:52 +02:00
Edvin Bryntesson
d07eec2245 fix so that it actually always updates both clients 2024-09-05 23:34:11 +02:00