Commit Graph

21 Commits

Author SHA1 Message Date
Tiiita
4067f65ff9 Check collision before block place (#251)
* Add bounding box to entities)

* Try to update boundingbox when changin pos

* Remove unused imports

* Update / recalc boundingbox when changing pos

* Add collision when placing check

* Add todo: Check collision with every entity in pos

* Change BoundingBox::new() args

* Seperate bounding box width and height

* Change intersect fn name

* Clean up code
2024-11-10 23:28:14 +01:00
Snowiiii
2d24098e91 Fix: Wrong Flags numbers
Also fixes Sprinting broadcastig
2024-11-10 17:25:50 +01:00
Alvsch
d3f299d2f6 Add damage and re-spawning (#224)
* Added new packets

Added packets to pumpkin-protocol for damage and re-spawning.

* Made damage_type registry value accessible

* Added damage and fall damage

* fixed phasing bug

* fix issues caused by merge

* spawn player on ground

make the player spawn on the highest block instead of in the air.

* dont default player to flying

* mode last_pos to living_entity

* fix using entity instead of living_entity

* fixed fall damage not working properly when switching gamemodes
2024-11-05 23:38:26 +01:00
Snowiiii
14c8c7e362 Add more docs 2024-10-29 23:21:04 +01:00
Snowiiii
4bb52a7711 deny more clippy lints 2024-10-24 19:30:24 +02:00
Snowiiii
12ab2c7298 Clippy: warn clippy::pedantic 2024-10-21 15:07:05 +02:00
Alvsch
c85216242e Fixed cylindrical 2024-10-19 14:49:05 +02:00
Snowiiii
f74f77a1f0 Add tokio 2024-10-17 18:59:51 +02:00
Snowiiii
9ac4bdbd50 Add Living Entity struct 2024-10-11 12:54:42 +02:00
Alexander Medvedev
4967e9aa37 New clipps lints 2024-10-08 20:02:56 +01:00
StripedMonkey
e9a55cf976 misc spelling fixes in comments and variables 2024-09-19 03:04:01 -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
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
e5bfbce2ce Fix dead locks 2024-09-09 23:22:55 +02:00
Snowiiii
c8fee9b23c Try to solve Pumpkin's locking problem 2024-09-09 21:12:49 +02:00
Snowiiii
39b4cb3ac9 Move world into entity
Also fixes most of error when leaving while chunks are loading
2024-09-07 22:39:42 +02:00
Snowiiii
2ee9710f93 Refactor Entity 2024-09-07 19:33:01 +02:00
Snowiiii
32569bafe5 Add Multiplayer support 2024-08-06 16:19:03 +02:00
Snowiiii
4b8720efdc added Play state 2024-07-30 16:22:31 +02:00