Commit Graph

951 Commits

Author SHA1 Message Date
Commandcracker
2ae6b08c47 Upgrade Alpine to 3.21 (see CVE-2024-9143) (#409) 2024-12-25 13:32:21 +01:00
Alexander Medvedev
f5c20fb5d9 Create configs in a folder (#407)
* create configs in a folder

* use `env::current_dir()`
2024-12-24 20:02:27 +01:00
kralverde
5e60dba9d6 fix seed command output (#403) 2024-12-24 18:05:04 +01:00
Alexander Medvedev
fcf85df518 Save level.dat 2024-12-24 17:48:59 +01:00
we sell insurance
cc83e090f9 Implement level.dat reading and load the seed for use in world generation (#402)
* Implement level.dat reading and use the seed in the world for chunk generation

* Add tests

* Seperate world info loading from chunk reading

* Fix cargo fmt

---------

Co-authored-by: Alexander Medvedev <lilalexmed@proton.me>
2024-12-24 15:25:33 +01:00
Alexander Medvedev
53949103cd fix: https://github.com/Snowiiii/Pumpkin/issues/406 2024-12-24 12:40:05 +01:00
Alexander Medvedev
1d96701cc0 fix: Received unknown packet id 130
this was mostly because of poor naming, While there are two CServerLinks packets, I accidentally send the play CServerLinks in the login state which has a different packet id
2024-12-24 12:20:10 +01:00
Alexander Medvedev
3dae300f81 Some refactors 2024-12-24 00:56:19 +01:00
Alexander Medvedev
fd667901cd add codecs folder to git 2024-12-21 17:09:27 +01:00
Alexander Medvedev
0633197b62 pumpkin-protocol: added codecs 2024-12-21 17:05:44 +01:00
kralverde
55e8cd696e Remove optimizations for dev builds (#404) 2024-12-21 12:54:23 +01:00
Alexander Medvedev
cc0f30848e More clippy lints
Also made some vars NonZero
2024-12-19 01:25:19 +01:00
Alexander Medvedev
133ef45c19 extractor: update to Kotlin 2.1 2024-12-17 00:56:13 +01:00
Alexander Medvedev
f7fa7bfa46 fix: clippy test failing
-_-
2024-12-17 00:27:21 +01:00
kralverde
c285915d00 properly check respawn and config updates (#398) 2024-12-17 00:12:59 +01:00
Alexander Medvedev
f323e78ef5 Fix: https://github.com/Snowiiii/Pumpkin/issues/270 2024-12-17 00:06:49 +01:00
Lucas11
9a2e68a053 add Github link in /pumpkin command (#372)
* Add the text and the open link

* Update cmd_pumpkin.rs

* Fixed all the warnings and clippy and fmt

* fixed more

* trying to fix confics

* Fixed a bug

* another one

* Update .gitignore

* Update cmd_pumpkin.rs

* Added docs

* Formated

* Update cmd_pumpkin.rs

* im gonna test

* Change color bcs aqua is ugly

* Update cmd_pumpkin.rs

* Update cmd_pumpkin.rs

* Update cmd_pumpkin.rs
2024-12-16 20:30:23 +01:00
Snowiiii
cbf9e63329 Remove ByteBuffer struct
Replaced trough trait's which implement bytes::Buf and bytes::BufMut.
Closes https://github.com/Snowiiii/Pumpkin/issues/396
2024-12-13 15:42:04 +01:00
kralverde
1e2bfad4f9 Parse seeds same as java (#391)
* parse seeds same as java

* use time with random seed
2024-12-13 14:10:07 +01:00
Snowiiii
dde83d0dc5 put VarInt and VarLong Serialize and Deserialize together 2024-12-13 00:29:48 +01:00
Snowiiii
f587cb6748 remove iter_tools
we only used them for collect_vec. I think its worth the "effort" to write Vec type annotations ourself and have one big crate with way too may features we don't need less
2024-12-12 23:40:52 +01:00
Kris
43c3f03bdb Added Initial Time Packet on Login (#382)
* Added initial time packet on login
2024-12-12 22:30:58 +01:00
Kris
ff6f9ca298 Added chest and furnace (#384) 2024-12-12 16:46:37 +01:00
Snowiiii
2ee2cc06dd fix some typos 2024-12-11 16:15:31 +01:00
とぴ。(おーけ
874b116cac fix mut raw_args in commands (#394) 2024-12-11 14:53:46 +01:00
Snowiiii
365d83f123 Fix: clippy
Normal clippy was not showing these lints, i had to run `cargo clippy --release --all-targets --all-features --no-default-features`
2024-12-11 08:09:50 +01:00
Snowiiii
bd8bac1ff5 Less heap allocations 2024-12-11 00:29:23 +01:00
Snowiiii
bab92b39ca Refactor VarInt and VarLong
- Less duplicate code
- Cleaner Code :D
2024-12-10 16:17:53 +01:00
kralverde
33c5f4124a check closed status before sending packets (#390) 2024-12-10 08:31:33 +01:00
Kris
4d5b7ac156 Added Basic Attack Modifiers (#383)
* Added basic attack modifiers
2024-12-09 00:01:38 +01:00
Snowiiii
d0d0f35a94 Some minor improvements 2024-12-08 23:59:52 +01:00
kralverde
4763fa356c stablize cylindrical chunks (#385) 2024-12-08 22:32:51 +01:00
Snowiiii
c7e02ecfe2 Fix: https://github.com/Snowiiii/Pumpkin/issues/375 2024-12-07 16:59:38 +01:00
kralverde
ed293463c5 Use all cpus for intensive tasks (#381)
* use all cpus to load chunks

* make main async again

* update comment
2024-12-07 16:31:33 +01:00
Snowiiii
7c90ef9f5a Remove Craft & Ender Chest commands
This was a temporary solution. Since b82a4e130b now is merged we can remove them
2024-12-07 16:25:07 +01:00
Snowiiii
e02f05825f Add Deserialize and Serialize for Vector3 2024-12-07 16:20:49 +01:00
Snowiiii
b2f627d517 Use Entity teleport Packet instead of Player
Should make fixing https://github.com/Snowiiii/Pumpkin/issues/363 easier
2024-12-07 15:40:50 +01:00
Alvsch
a04b23f633 Added compile time BlockState (#347)
* added block_state! macro

* Update block_state! macro
2024-12-07 13:10:37 +01:00
Nico Göbel
b82a4e130b Add: Interactive blocks (#333)
* WIP interactive blocks

* Added jukebox and crafting table

* Making feature more dynamic allowing every block action to be registered here

* Renamed interactive_block_manager to block_manager

* Simplifying register functions

* Added on placed

* Fix master merge

* Added pumpkin_block macro

* Removed junk

* Added the option to block placing in on_use_with_item

* Fixed inventory lock

* Adding on_broken and implementing it for the jukebox

* Fixed merge
2024-12-07 13:00:03 +01:00
kralverde
cd6ac147ec Fix chunk loading (#378)
* fix chunk loading

* make tokio and rayon work together
2024-12-07 12:55:51 +01:00
Commandcracker
3143f73ba0 Update entity types to 1.21.4 (#374) 2024-12-06 17:41:34 +01:00
Commandcracker
87f09f2905 Set abilities when changing gamemode (#369) 2024-12-06 08:34:00 +01:00
Commandcracker
51b142dc6d shadow_color (#371) 2024-12-05 23:08:42 +01:00
Alexander Medvedev
ff5e938022 use quotes in bug_report.yml 2024-12-05 15:09:16 +01:00
Alexander Medvedev
dd2182f3e3 again fix bug_report.yml 2024-12-05 14:59:00 +01:00
Alexander Medvedev
ef15df8fa7 fix bug_report.yml 2024-12-05 14:57:04 +01:00
Alexander Medvedev
f38a0be4c5 Update bug_report.yml 2024-12-05 14:56:18 +01:00
Commandcracker
700a3fe136 allow copying the server version (#370) 2024-12-05 14:53:29 +01:00
Alexander Medvedev
e26ffae843 Create SECURITY.md 2024-12-04 11:37:41 +01:00
Alvsch
e0576c59c7 Lefthand and sneaking fixes (#364)
* Fix #361

* Fixed sneaking

* Only update client metadata if values changed

* cargo fmt

* Fix deadlock
2024-12-03 23:44:28 +01:00