Commit Graph

27 Commits

Author SHA1 Message Date
lukas0008
fdb94d43fa Fix: Place block on correct side 2024-08-17 20:40:26 +02:00
lukas0008
94748859c6 Make Vector3 use a generic 2024-08-17 20:40:06 +02:00
Snowiiii
391d5cbcfc Added Player inventory (WIP) 2024-08-17 18:52:13 +02:00
Snowiiii
d6fb4ed121 Add Item registry 2024-08-17 13:00:35 +02:00
Snowiiii
40fe40355f Add BlockFace 2024-08-17 11:14:38 +02:00
Snowiiii
bf92fe22a0 Add Particles 2024-08-16 12:45:58 +02:00
Snowiiii
3b43322567 Fix: build 2024-08-16 11:11:40 +02:00
Snowiiii
231bdb5614 World: Add GZip compression 2024-08-16 11:10:16 +02:00
Snowiiii
21983824a3 parse test chunk distance from config 2024-08-15 15:06:19 +02:00
Snowiiii
6459aef027 Add Basic Combat 2024-08-14 22:26:27 +02:00
Snowiiii
03cc991bfd cargo clippy --fix 2024-08-14 21:39:05 +02:00
Snowiiii
6485c99167 cargo fmt 2024-08-14 21:37:27 +02:00
lukas0008
03f9b377d5 Optimize chunk loading
- Chunk loading now is done in a more simple manner. Instead of splitting it into regions and having one file handle for all chunks in the same region, now all chunks make their own file handle for the region, the previous overhead was not worth it, since this seemed to increase performance.
- Speed up of ~15%
- Now the `.read_chunks` function does not return anything, instead it sends event to an mpsc channel.
- Dramatically decreased memory footprint.
2024-08-13 23:30:20 +02:00
lukas0008
5075c97faa Load the world radially 2024-08-13 14:59:52 +02:00
lukas0008
85785c9ebe Fix: Server panics when loading certain chunks
Cause:
The size that is given in the file for the length of the chunk includes the compression byte, thus when reading a chunk that is at the end of the file, it would read 1 byte more that should be possible, causing a panic.
2024-08-13 14:53:55 +02:00
lukas0008
59749af69c Remove unnecessary logs and loading
- Load chunk (0,0) only in debug mode. This prevents crashes when the chunk for (0,0) does not exist, since this is only used for checking the size of the chunk packet.
- Remove log: `Getting chunks x, from region file y`
2024-08-13 14:14:19 +02:00
lukas0008
b68e9b809f Use rayon for processing chunks 2024-08-13 14:09:49 +02:00
Snowiiii
9fc86e260b Add: Basic Combat 2024-08-13 09:16:00 +02:00
Snowiiii
cfa20776f6 Add Clientbound Client Informations (Play) 2024-08-12 21:26:09 +02:00
lukas0008
435cd3b365 Remove development things 2024-08-12 20:43:15 +02:00
lukas0008
eaf806a928 NOW IT FULLY WORKS 2024-08-12 20:23:15 +02:00
lukas0008
a991ce214b CHUNK LOADING KINDA WORKS 2024-08-12 20:22:59 +02:00
lukas0008
b9de0839fa Reapply "Remove reqwest blocking feature"
This reverts commit 33df6b0b1f.
2024-08-07 21:16:40 +02:00
lukas0008
33df6b0b1f Revert "Remove reqwest blocking feature"
This reverts commit 76ce44e58d.
2024-08-07 21:16:00 +02:00
lukas0008
76ce44e58d Remove reqwest blocking feature 2024-08-07 21:13:00 +02:00
Snowiiii
19af3618cb fix: all clippy warns 2024-08-04 00:40:27 +02:00
Snowiiii
ae69bbc7f1 Add pumpkin-world
also refactor player
2024-08-04 00:29:20 +02:00