1
0
mirror of https://github.com/GeyserMC/Geyser.git synced 2025-12-19 14:59:27 +00:00
Commit Graph

4418 Commits

Author SHA1 Message Date
oryxel
4236036833 Fix: pitch and yaw order inside PlayerLookAt packet translator. (#5826) 2025-09-17 14:17:56 +02:00
onebeastchris
9f42783d81 Check for blank instead of empty legacy color 2025-09-17 13:27:37 +02:00
Eclipse
9f8bc9db99 Bump MCPL for data palette fixes (#5818)
* Update chunk loading for MCPL changes

* Adjust for renames in MCPL

* Bump MCPL

* Rename this just because I can
2025-09-15 21:01:23 +00:00
Eclipse
6690e756f4 Fix index out of bounds exception in BlockBreakHandler (#5820)
* Add Direction#getUntrusted method for safely extracting directions from packets

* Move incorrect direction ID log to debug, rename piston value to MCPL

* Make Direction#getUntrusted warn again
2025-09-13 18:56:42 +00:00
Eclipse
d56cc11234 Fix breaking of custom blocks or blocks with custom items (#5817)
* Tick BlockBreakHandler to properly send updates when breaking custom blocks/blocks with custom items

* Call tick when receiving input packet, store Direction instead of face ID

* Whoops, only call tick when no block actions are performed
2025-09-13 11:32:10 +02:00
oryxel
18c710547b Fix: force flag update for session players entity flags (#5810)
* Force flag update for session player when living entity flag update.

* Requested changes.

* Removed useless import.
2025-09-12 02:13:57 +02:00
onebeastchris
5b16c9caa2 Update MCPL - resolves Geyser not starting on older Spigot / Paper versions
Fixes https://github.com/GeyserMC/Geyser/issues/5776
2025-09-11 19:37:46 +02:00
Eclipse
cb65d1a687 Fix loading of trim materials with an empty description (#5814)
* Fix loading of trim materials with an empty description

* Use white character just in case

* Use ChatColor.WHITE instead

* Whoops
2025-09-11 18:30:53 +02:00
chris
50855d0fe4 Fix: Don't flatten component before checking max nesting depth (#5815) 2025-09-11 18:28:54 +02:00
onebeastchris
c4d6947e48 Resolve client-side visual bug when removing flowers from flower pots
Fixes https://github.com/GeyserMC/Geyser/issues/5295
2025-09-11 18:25:17 +02:00
chris
35be9072c7 Improve block breaking code (#5809)
* Feature: Guessing how long block breaking will take

* more changes

* Remove BedrockBlockActions.java

* More progress: Remove code that causes us to send erroneous early block breaking actions

* Further work on insta-break handling

* Add GAME_MASTER_BLOCK check

* Cleanup, this actually works better than expected

* Code cleanup

* Inverted valid check will do invalid things!

* Fix block breaking attribute reading

* Implement adventure mode can_break predicates

* Address reviews, minor changes to wonderful code

* Remove JavaBlockBreakHandler.java in favor of extension

* yeet debug

* Avoid dividing by zero, fix item frame interactions for good

* Also avoid dividing by zero here

---------

Co-authored-by: Eclipse <eclipse@eclipseisoffline.xyz>
2025-09-11 14:51:09 +02:00
chris
7dcdf5cbe6 Add base-denied-permissions section to standalone command manager (#5672)
* Add base-denied-permissions section to standalone command manager

* Address review
2025-09-11 01:24:54 +02:00
purpurcof
175794e06f Fix: Correct void collisions, check rotation values and correct world border check (#5797)
* fix(bedrock-movement): correct void collisions, rotation packets and world border checks

* fix(bedrock-movement): use position.toFloat() directly in world border check

* fix(bedrock-movement): correct odd formatting
2025-09-04 14:48:10 +02:00
onebeastchris
0a2041844d Revert "Refactor: Movement collision system (#5779)"
This reverts commit 9e22144ab5.
2025-09-04 14:34:04 +02:00
onebeastchris
bb7e990051 Revert "Fix: remove collision expansion when correcting player position (#5798)"
This reverts commit 9cc4e9c7ea.
2025-09-04 14:34:02 +02: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
f4a0647cd9 Update highest supported Bedrock version in readme 2025-08-14 14:42:13 +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
79caa98e4f Bump Bedrock protocol library 2025-08-13 02:28:55 +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
461acb62a9 Fix: Geyser-Spigot modrinth publishing 2025-07-25 22:03:23 +02:00