1
0
mirror of https://github.com/GeyserMC/Geyser.git synced 2025-12-29 11:49:16 +00:00
Commit Graph

1635 Commits

Author SHA1 Message Date
oryxel
5705d65db4 Severals fixes relating to the new movement collision system.
* Revert last change, move everything to a different package, added end portal fix.

* Oops.

* Fixed lantern collision.

* Fixed conduit collision.

* Fixed scaffolding collision.

* Fixed bell collision and sea pickle collision.

* Avoid loop.

* oops.

* oops x2.

* Change comments.
2025-09-09 18:53:58 +07:00
oryxel
9cc4e9c7ea Fix: remove collision expansion when correcting player position (#5798) 2025-09-04 02:00:14 +02:00
oryxel
9e22144ab5 Refactor: Movement collision system (#5779)
* Initial work on fixing the collision system.

* More work.

* Clean this up.

* Oops.

* More work.

* Added comment.

* Start fixing other collisions.

* Properly fix trapdoor collision.

* Properly fix door collision.

* Fixed glass pane/iron bars collision.

* Fixed comment.

* Removed debug print.

* Cleanup the code.

* Revert some dumb changes.

* Move player position down when standing on chest.

* Also state that this resolve #4955.

* Requested changes.

* Update core/src/main/java/org/geysermc/geyser/session/GeyserSession.java

Co-authored-by: chris <github@onechris.mozmail.com>

* Update core/src/main/java/org/geysermc/geyser/session/GeyserSession.java

Co-authored-by: chris <github@onechris.mozmail.com>

* Added a TODO to remove collision expansion if not needed.

---------

Co-authored-by: chris <github@onechris.mozmail.com>
2025-09-03 12:38:04 +02:00
oryxel
1dc3f41712 Send TickEndPacket alongside the auth input packet, store correct Java yaw (#5716)
* Moved ServerboundClientTickEndPacket to PlayerAuthInput translator.

* Fixed sprinting packet sending.

* Make yaw rotation match JE behaviour.

* Use the fixed yaw in ServerboundUseItemPacket.

* Fixed swinging order for attacking.

* Update some comments.

Co-authored-by: chris <github@onechris.mozmail.com>

* Requested changes.

* Update core/src/main/java/org/geysermc/geyser/translator/protocol/bedrock/entity/player/input/BedrockMovePlayer.java

Co-authored-by: chris <github@onechris.mozmail.com>

* Update core/src/main/java/org/geysermc/geyser/translator/protocol/bedrock/entity/player/input/BedrockPlayerAuthInputTranslator.java

Co-authored-by: chris <github@onechris.mozmail.com>

* Update core/src/main/java/org/geysermc/geyser/translator/protocol/bedrock/entity/player/input/BedrockPlayerAuthInputTranslator.java

Co-authored-by: chris <github@onechris.mozmail.com>

---------

Co-authored-by: chris <github@onechris.mozmail.com>
2025-08-23 05:58:44 +02:00
oryxel
d1706f1908 Revert bad change causing issues with stair movement (#5778) 2025-08-23 05:53:38 +03:00
onebeastchris
8e295a978d Fix: Command block tags not translating name leniently 2025-08-21 02:51:29 +03:00
onebeastchris
e68917b872 Fix build, oops 2025-08-21 01:35:24 +03:00
chris
92a8b01f5c Catch block caching exceptions (#5771)
* Catch block caching exceptions, add ShowPlayerListLogs / ShowChunkHeightWarningLogs system properties to disable warnings

* Update ChunkCache.java
2025-08-21 01:27:26 +03:00
oryxel
35210be891 Fix: don't send sneaking if player is already not on vehicle. (#5769) 2025-08-20 14:30:43 +03:00
oryxel
4d6592b30c Various improvements to movement, teleport, collisions (#5703)
* Initial work.

* Fixed keep velocity desync.

* More work.

* More work.

* Fix this comment.

* Little oopsie.

* Save player motion when updating rotation.

* Implement ROTATE_DELTA.

* More work.

* Fixed void floor properly.

* Always set isOnGround to false if near the void floor.

* Fixed collision correction.

* Also use recalculate position method for this one.

* Make no clip void conditional.

* Update core/src/main/java/org/geysermc/geyser/session/cache/TeleportCache.java

Co-authored-by: chris <github@onechris.mozmail.com>

* Some changes.

* Fix: Collision check, there's more than one bamboo/dripstone block state, and minor touchups

* Use Math.toRadians.

* Oops, make this compile.

* Specify the teleportation cause.

* Only specify the teleport cause if mode is teleport.

---------

Co-authored-by: chris <github@onechris.mozmail.com>
2025-08-20 12:03:50 +03:00
onebeastchris
dc5fc8f54c Fix https://github.com/GeyserMC/Geyser/issues/5767, make it build
Removing the test is fine, since deserializeOr was introduced to fix the NPE
2025-08-18 16:21:28 +03:00
onebeastchris
969cc8c63b Remove unnecessary gson component serializer wrapper 2025-08-18 12:12:46 +03:00
chris
e2ae101419 Resolve "not in event loop" issue on Geyser-Velocity with use-direct-connection enabled (#5720) 2025-08-15 23:38:42 +03:00
onebeastchris
28dcffa21e Introduce nesting limit for component flattening 2025-08-15 03:05:50 +03:00
chris
ef726fbf34 Indicate Bedrock 1.21.101 support 2025-08-14 14:40:48 +03:00
Xamyr
d656b4419e Fix: Passenger y-axis offset for shulkers and falling blocks (#5722) 2025-08-13 14:22:03 +03:00
onebeastchris
c23ac5caf3 Bump Bedrock networking library, fix NPE related to resource pack re-downloading
Closes https://github.com/GeyserMC/Geyser/issues/5243
2025-08-13 03:10:40 +03:00
onebeastchris
02cceaea85 Change default listen count to one
Avoids multiple local servers showing up on lan - and for 99% of servers one will suffice either way
2025-08-12 18:06:28 +03:00
oryxel
ea967a0b1b Fix: boat bounding box while driving (#5700)
* Fixed boat bounding box.

* Update core/src/main/java/org/geysermc/geyser/entity/type/player/SessionPlayerEntity.java

Co-authored-by: chris <github@onechris.mozmail.com>

* Update core/src/main/java/org/geysermc/geyser/entity/type/player/SessionPlayerEntity.java

Co-authored-by: chris <github@onechris.mozmail.com>

---------

Co-authored-by: chris <github@onechris.mozmail.com>
2025-08-10 22:06:48 +02:00
Aurorawr
61a1ddd3fd Handle Happy Ghast shearing on interact (#5729)
* Handle Happy Ghast shearing on interact

* Use the correct interactive tag, fix requirements to be able to shear off the harness
2025-08-05 18:49:06 +02:00
chris
a41cc9e4a3 API 2.8.3: Support 1.21.100, support sending skins via api (#5742)
* Support 1.21.100

* Add GeyserConnection#sendSkin, #joinAddress and #joinPort (#5641)

* Add GeyserConnection#sendSkin and GeyserConnection#clientConnectionAddress

* address reviews

* Bump to 2.8.3

* Split into joinAddress / joinPort

* Update api/src/main/java/org/geysermc/geyser/api/connection/GeyserConnection.java

* Update api/src/main/java/org/geysermc/geyser/api/connection/GeyserConnection.java

* improve address / port parsing
2025-08-05 16:25:23 +02:00
onebeastchris
bea10781bd Log response from failed geyser dump uploading 2025-08-04 23:46:30 +02:00
onebeastchris
efa41e05b7 Small fixes to previous commit 2025-08-03 22:03:11 +02:00
onebeastchris
e6ecfcdfee Handle empty packid's in resource pack response packet 2025-08-03 21:32:10 +02:00
Eclipse
9b04d7e019 Fix: waypoint and vault stack traces, bump Adventure (#5735)
* Catch class cast exception when the server sends us incorrect waypoint data

* Replace vault item component translation failure stacktrace with log message

* Bump adventure, update text component hashers

* Only send vault item component warning message once, do instanceof checks in GeyserWaypoint subclasses

* Revert vault item component error message to warning
2025-08-02 00:35:18 +02:00
Kas-tle
57eb3b7c27 Forcibly close upstream of GeyserSession on invalid packets (#5732)
* Forcibly close upstream of GeyserSession

* Logic error

* Resolve review and bump protocol

* Logic error
2025-07-31 00:47:00 +02:00
onebeastchris
fa4b1634d0 Validate received resource pack packets 2025-07-30 20:39:07 +02:00
onebeastchris
b3424a13a4 Introduce limit for the maximum number of connected clients per address 2025-07-30 01:32:29 +02:00
onebeastchris
4746651aea Skip remote resource pack check for per-session resource packs 2025-07-28 09:59:22 +02:00
Konicai
70bdb7f66a Refactor GameProtocol to remove version slash-combinations (#4979)
* Refactor GameProtocol

* Document 1.21.22 as a supported version, update MinecraftVersion javadoc

* Only expose latest Bedrock protocol & version, ensure latest version in ping

* Also indicate 1.21.8 Java edition support in the geyser api

---------

Co-authored-by: onebeastchris <github@onechris.mozmail.com>
2025-07-27 20:37:51 +02:00
onebeastchris
a6f707fb10 Attempt to temporarily resolve build 2025-07-27 02:50:14 +02:00
onebeastchris
c915d3ac05 Indicate 1.21.94 support in readme, ignore wolf sound variant entity metadata 2025-07-26 21:40:53 +02:00
onebeastchris
ca99ab7b1b Fix: Build issues for Geyser-Fabric and Geyser-NeoForge
resolves: https://github.com/GeyserMC/Geyser/issues/5718
how did this work until now? we'll never know
2025-07-26 01:13:25 +02:00
onebeastchris
df4bb4f1c1 Update netty & mcpl dependencies
Fixes https://github.com/GeyserMC/Geyser/issues/5375, https://github.com/GeyserMC/Geyser/issues/5301, fixes https://github.com/GeyserMC/Geyser/issues/5050
2025-07-25 20:04:39 +02:00
onebeastchris
7a154504cd Resolve issues related to re-downloading of failed remote resource packs 2025-07-24 00:54:18 +02:00
oryxel
1f23d1d1e2 Fix: allow glass bottle to use touch rotation (#5706) 2025-07-19 14:54:43 +02:00
oryxel
5a00fa4170 Fix: only use touch rotation for certain items (#5705) 2025-07-19 13:56:05 +02:00
oryxel
853207bea2 Fix server-side firework boosting (#5680)
* Don't send a too large number for elytra boost.

* Also send tick the client.

* Added tested version to the comments.
2025-07-17 16:13:36 +02:00
oryxel
1748daa1ed Fix: water bucket placing on mobile devices (#5590)
* Fixed water placing.

* Don't send ServerboundUseItemOnPacket when you're already sending ServerboundUseItemPacket

* Fixed wrong comment placement.

* Requested changes.

* Move this code back to the right place.

* Again, move this code to the right place.

* Removed lookBackScheduledFuture.
2025-07-17 15:36:44 +02:00
Eclipse
42b57ba1b0 Fix vault block entity component translation, minor cleanups (#5688) 2025-07-16 21:30:26 +02:00
Eclipse
dede8b7f20 Fix: make parsed dialog inputs mutable before adding additions map (#5690) (#5691) 2025-07-16 21:30:13 +02:00
onebeastchris
34e7dc96a2 Remove PlayerLoginEvent usage on Geyser-Spigot 2025-07-11 03:16:18 +02:00
oryxel
8c8782c65b Improve motion translation from explosions (#5659) 2025-07-11 01:59:09 +02:00
oryxel
fc34aa464a Entity flag fixes for shulkers, player entity crawling, out-of-block pushing (#5670)
* Some fixes related to flags.

* Fixed comments.

* Cleanup some if statements.
2025-07-11 01:34:33 +02:00
oryxel
96bb7d9dcb Improve firework boosting (#5658)
* Better fireworks boosting parity.

* Requested changes.
2025-07-08 19:12:00 +02:00
Eclipse
3174154a4a Support lava chicken music disc (#5651)
* Update protocol for 1.21.93 support

* Target latest mappings
2025-07-06 23:10:41 +02:00
Eclipse
57f0489289 Fix jukebox action bar message (#5649) 2025-07-06 13:24:17 +00:00
Eclipse
0e7b18eb35 Fix #5647 (#5648)
* Fix #5647

* Default to egg item
2025-07-05 09:47:59 +00:00
onebeastchris
74456ee06b Support 1.21.93 2025-07-03 21:22:51 +02:00
Eclipse
92d12bf7bc Fix block by Java key lookup (#5637)
* Fix block by Java key lookup, optimise hardcoded lookup a bit, clarify Javadocs

* Rename the registry too
2025-07-01 12:33:37 +00:00