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

4438 Commits

Author SHA1 Message Date
oryxel1
5db930e2c0 Update branch. 2025-09-30 22:03:52 +07:00
oryxel
53af1afe70 Initial work on simulating player y motion to account for rounding errors. (#5857)
* Initial work on y-axis simulation fix.

* More accurate entity set motion translation.

* Less flagging when taking knockback.

* Exempt these cases.

* Added some comments actually explaining things.

* Minor changes.

* Minor changes.
2025-09-30 21:47:25 +07:00
oryxel1
43467f7d19 If it works, don't change it, move this outside the loop. 2025-09-22 22:26:20 +07:00
oryxel1
7791c0d441 Make this compile. 2025-09-22 22:22:05 +07:00
oryxel1
9b7aa21644 Merge branch 'movement-translation-improvement' of https://github.com/GeyserMC/Geyser into movement-translation-improvement 2025-09-22 22:13:29 +07:00
oryxel
37bb084294 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-22 22:13:06 +07:00
onebeastchris
5abc03668f Fix: Properly close inventory when opening forms 2025-09-20 16:23:24 +02:00
onebeastchris
7b0913ca86 Close the current inventory before sending form, kick players sending invalid block break actions 2025-09-19 03:32:23 +02:00
Eclipse
e8e4e80fe8 Add loading of new util.json mappings (#5823)
* Add loading of new util.json mappings

* Remove now unused set

* Switch to loading util mappings through registries

* Add Javadocs for UtilMappings

* Target mappings with util.json
2025-09-17 12:22:34 +00:00
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
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
oryxel1
2531617cb9 Change comments. 2025-09-09 18:51:06 +07:00
oryxel1
18a7bf0396 oops x2. 2025-09-05 21:51:48 +07:00
oryxel1
b75ccc7b94 oops. 2025-09-05 21:50:57 +07:00
oryxel1
141461b342 Avoid loop. 2025-09-05 21:49:04 +07:00
oryxel1
ccc4faeb59 Fixed bell collision and sea pickle collision. 2025-09-04 22:45:13 +07:00
oryxel1
3d6cbd3409 Fixed scaffolding collision. 2025-09-04 21:43:42 +07:00
oryxel1
6c289eebd5 Fixed conduit collision. 2025-09-04 20:57:29 +07:00
oryxel1
55fdf809a1 Fixed lantern collision. 2025-09-04 20:14:16 +07:00
oryxel1
f430cb6722 Oops. 2025-09-04 19:51:45 +07:00
oryxel1
b57bdee4ca Revert last change, move everything to a different package, added end portal fix. 2025-09-04 19:49:58 +07: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