Commit Graph

362 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
e0180ef0cf Fix: clippy 2024-10-11 16:47:24 +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
4076cda942 Add Clientbound Set Health 2024-10-11 12:00:18 +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
Alexander Medvedev
2194f14981 Improve RCON
Remove all unwraps when handling packets. Also improve split Packets into Client & Server bound removing ugly match statement where we are reading Clientboud Packets (which is impossible).
2024-10-07 23:00:25 +01:00
Alexander Medvedev
a0b4785269 Move from image to png crate
We used the famous and good `image` crate to load the favicon. Its a good crate but its in fact has features we don't need, Its in fact a "An Image Processing Library" like it is mentioned on their README. Its also supports multiple image formats which we don't need. The `png` is a PNG & APNG Decoder & Encoder, Exactly what we need. Its about Half the size of the image crate (while only having png feature)
2024-10-07 20:47:08 +01:00
Alexander Medvedev
1726c06887 Merge pull request #106 from kralverde/block_id_tweaks
Create Block, BlockCategory enums. Create block state struct.
2024-10-02 07:49:49 +01:00
Alerty2
f8740479e0 adds the /kick command 2024-10-01 21:19:29 +02:00
Alerty2
f15db29d29 adds the /kill command 2024-09-30 20:50:00 +02:00
Alerty2
100f313c49 adds the /kill command 2024-09-29 17:15:10 +02:00
Alerty2
0590a4f87d adds the /kill command 2024-09-29 17:06:23 +02: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
Snowiiii
92fef82bda use HashMap::values 2024-09-26 23:27: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
lukas0008
a30dbde50b Merge pull request #101 from Snowiiii/block-macro
Add `block_id!` macro
2024-09-19 17:31:30 +02:00
StripedMonkey
229be05e98 run formatter on cargo.toml files 2024-09-19 03:10:26 -04:00
StripedMonkey
e9a55cf976 misc spelling fixes in comments and variables 2024-09-19 03:04:01 -04:00
lukas0008
cf62babfe4 Make itertools a workspace dependency 2024-09-18 16:59:12 +02:00
lukas0008
810ecbeb1f Make Pumpkin work again 2024-09-17 23:50:56 +02:00
StripedMonkey
d68a25b169 adopt proposed alternative name for cached data 2024-09-12 18:51:08 -04:00
StripedMonkey
8bf8ba14da settle on key_store for a name 2024-09-12 18:48:22 -04: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