Commit Graph

458 Commits

Author SHA1 Message Date
lukas0008
ca2e4e2a9b Remove targets from rust-toolchain.toml
Toolchains in the rust-toolchain.toml file do not actually enforce what toolchains are supported, but specified which toolchains need to be downloaded. This forces each device building the project to download all 4 targets before actually building.
2024-09-06 23:30:15 +02:00
Alexander Medvedev
b40c2fa988 Add Experimental Plains biome
Also add Perlin noise
2024-09-06 17:54:14 +01:00
Alexander Medvedev
91d190c212 Remove unused deps
to mention is the take_mut dep i removed. Its heavily outdated and uses unsafe combined with pointer magic.
2024-09-06 13:30:57 +01:00
Alexander Medvedev
dad4798844 Update deps 2024-09-06 11:34:59 +01:00
Alexander Medvedev
15cceb53ec Merge pull request #69 from DaniD3v/unused_allows
Removed unused #[allow()]'s
2024-09-06 10:29:07 +01: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
Alexander Medvedev
e3c392cc80 Merge pull request #78 from kralverde/network_error
Incoming Packet Validation
2024-09-05 21:24:57 +01:00
kralverde
af878ff549 fix check 2024-09-05 15:29:27 -04:00
kralverde
2993d6bfb6 add checks for everything else 2024-09-05 15:21:33 -04:00
kralverde
fac5436a2b get_string_len extra validity check 2024-09-05 14:28:09 -04:00
Alexander Medvedev
0f60f7475d Merge pull request #74 from StripedMonkey/connection_refactor
Networking Refactor Pt. 1
2024-09-05 10:21:06 +01:00
StripedMonkey
4dce8aa90d Allow From<Vec3<T>> for (_,_,_) for easy destructuring. 2024-09-04 21:52:42 -04:00
StripedMonkey
286253cdc6 eliminate unnecessary (and overloaded) variable 2024-09-04 21:52:42 -04:00
StripedMonkey
8b73cafaf0 expect -> except 2024-09-04 21:52:42 -04:00
StripedMonkey
dc093f4a21 remove unnecessary references
It's already a usize, so the references are meaningless when the pointer is the same size as the type.
2024-09-04 21:52:42 -04:00
StripedMonkey
b55991d8de shift server into its own module 2024-09-03 17:41:21 -04:00
StripedMonkey
f47b8a1ed1 Eliminate Unnecessary Arc<Token>
Tokens already implement copy and clone, keeping a shared reference to the token doesn't actually do anything, and is larger than a token is to begin with.

clone copies
2024-09-03 17:41:21 -04:00
lukas0008
f6a4082410 Set base url to /Pumpkin/ for github pages 2024-09-02 21:08:41 +02:00
lukas0008
fbf2df15d2 Merge pull request #73 from Erb3-forked/docs
Added docs (using vitepress)
2024-09-02 20:34:22 +02:00
Erb3
085d0cd266 fix(docs): move to npm from bun 2024-09-02 20:25:58 +02:00
Erb3
313e99cc6b docs: remove incorrect link 2024-09-02 20:12:41 +02:00
Erb3
2748fa1462 docs: remove unused files 2024-09-02 20:11:33 +02:00
Erb3
2b1bdca58f docs: structure documentation 2024-09-02 20:10:13 +02:00
Snowiiii
66b8644058 Merge branch 'master' of https://github.com/Snowiiii/Pumpkin 2024-09-01 23:14:58 +02:00
Snowiiii
1f4fe2a26e Fix: Chunk loading dead lock 2024-09-01 23:14:53 +02:00
Alexander Medvedev
0e1f8b1f5f Merge pull request #72 from neeleshpoli/event-api
Created Identifier to help keep track of plugin resources.
2024-09-01 19:02:15 +01:00
we sell insurance
047f5a4efc Merge branch 'master' of https://github.com/Snowiiii/Pumpkin into event-api
Resolve merge conflicts
2024-09-01 12:31:09 -05:00
we sell insurance
0a02c28b26 Move serde into workspace 2024-09-01 12:26:48 -05:00
Alexander Medvedev
a7d054a812 Merge pull request #71 from kralverde/legacy_random
implement legacy_random and java string hash
2024-09-01 17:58:03 +01:00
Snowiiii
5c0dffbf9d Dynamic chunk loading 2024-09-01 18:04:27 +02:00
we sell insurance
5ab877a40a Add TODO comment for encoding 2024-09-01 08:16:43 -05:00
Alexander Medvedev
2085307a44 Merge pull request #70 from DaniD3v/remove_lazy_static
Remove lazy static in favor of LazyLock
2024-09-01 09:09:15 +01:00
Alexander Medvedev
f6151df084 Merge pull request #68 from DaniD3v/master
Move config to lazy_lock and into own crate
2024-09-01 09:07:28 +01:00
Alexander Medvedev
9cd245b190 Merge pull request #65 from StripedMonkey/msrv
create rust-toolchain.toml
2024-09-01 08:50:12 +01:00
we sell insurance
14e59dfb8f Create Identifer to help keep track of plugin resources. 2024-08-31 17:24:43 -05:00
kralverde
faceba091c implement legacy_random and java string hash 2024-08-31 15:06:41 -04:00
DaniD3v
8a2e7cada8 Removed lazy_static!{} in favor of LazyLock 2024-08-31 20:34:00 +02:00
DaniD3v
070a50833b Moved config into its own crate 2024-08-31 19:38:47 +02:00
DaniD3v
a17ed23b00 Moved Difficulty into pumpkin-core 2024-08-31 19:34:35 +02:00
DaniD3v
2fbf450ed3 Moved GameMode into pumpkin-core 2024-08-31 19:33:47 +02:00
DaniD3v
6740e717f7 Reordered Imports 2024-08-31 19:29:24 +02:00
DaniD3v
bb543b7178 Moved configuration to LazyLock 2024-08-31 19:29:22 +02:00
DaniD3v
e48ca3b99f Moved configuration structs into own files
- PVPConfiguration
- RCONConfiguration
- CompressionConfiguration
- CommandsConfiguration
2024-08-31 19:27:06 +02:00
DaniD3v
a6cb88b48f Added LoadConfiguration trait.
De-duplicates code from both BasicConfiguration and AdvancedConfiguration.
Allow config to fail writing. (On e.g. immutable linux distros)
2024-08-31 19:27:06 +02:00
DaniD3v
003219d3e8 Sorted main.rs inputs 2024-08-31 19:27:06 +02:00
DaniD3v
d2924d4632 Moved auth_config to auth
Make it consistent with `proxy` and `resource_pack`
2024-08-31 19:27:06 +02:00
DaniD3v
d57d9ffdcc Use proper IP Address abstraction instead of using format!() 2024-08-31 19:27:06 +02:00
DaniD3v
ff68b5cac5 Removed manual Default implementation 2024-08-31 19:27:06 +02:00
DaniD3v
3535d2cda1 Fixed new clippy lint 2024-08-31 19:27:06 +02:00