Commit Graph

940 Commits

Author SHA1 Message Date
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
Snowiiii
219527dcb2 Remove all wiki.vg mentions
wiki.vg is gone
2024-12-03 23:36:11 +01:00
Snowiiii
35afc0bfb9 Port to 1.21.4 2024-12-03 23:34:59 +01:00
vyPal
c52b770214 Better help command (#365)
* Make formatting more easy to read

* Implement recursive extra field

* Nicer help command

* Make command help menu nicer

* Fix clippy issues
2024-12-02 21:21:03 +01:00
Commandcracker
5be43e2cb1 TextComponent: Console text extra field (#356)
* Handle extra in console
2024-12-02 19:28:40 +01:00
Commandcracker
3fecdcb3de fix seed command formatting (#358) 2024-12-02 19:25:59 +01:00
kralverde
979877f048 "populate noise" step of chunk generation (#319)
* implement populate noise step of chunk generation

* fix gitignore

* pass thru seed

* add counter for edge case

* add entire chunk test case

* remove eclipse file

* remove packet timing

* precompute float divisions

* unsafe speed up

* slight aquifer optimization

* tweak block pos packing

* optimize perlin map

* precompute aquifer random positions

* fix aquifer regression

* refactor samplers, add tests to aquifer, and move chunk extractor to the extractors

* fix base density function error and add a bunch of test cases

* ignore expensive tests by default

* remove un-needed lifetimes

* remove minecraft prefix from block lookups

* fix populate noise bench

* slight optimizations

* read files at runtime to speed up test compilation speed and remove ignores

* remove new lines from test data so people stop freaking out about line count

* make extractor the same

* leverage branch prediction

---------

Co-authored-by: Alexander Medvedev <lilalexmed@proton.me>
2024-12-02 19:01:37 +01:00
Commandcracker
5742bddafe Remoce comment (#357) 2024-12-02 11:04:44 +01:00
Hugo Planque
1fd966f210 fix(protocol): Don't reserve memory on packet decoding error (#360)
* fix(protocol): Don't reserve memory on packet decoding error

* fix: revert packet_decoder fix part, this need more test for the moment

* fix: drop the connection on decoding error to avoid possible attack
2024-12-01 21:48:42 +01:00
Edvin Bryntesson
f29cfbc63d move container to LivingEntity (#355) 2024-11-30 19:51:22 +01:00
vyPal
51365c4b46 Text component children + fix nbt serialization for sequences of maps (#349)
* Fix list serialization when elements are maps

* Add extra field and add_child method to TextComponent
2024-11-30 19:19:48 +01:00
we sell insurance
136c0fc7c5 Handle client ping requests (#351)
* Handle client ping requests

* Fmt
2024-11-30 14:04:54 +01:00