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

1711 Commits

Author SHA1 Message Date
onebeastchris
efb52dc8f9 Reset inventories on world switch 2025-06-05 14:46:19 +02:00
Eclipse
9fbc1d3ab1 Implement clear dialog packet 2025-06-05 12:35:47 +00:00
Eclipse
40a922f3b5 Small refactor 2025-06-05 12:34:45 +00:00
Eclipse
a71eb5e086 Add input validation, fix forms with inputs not having labels 2025-06-05 12:24:14 +00:00
Eclipse
b5d1f70186 More refactors and write some documentation; implement "confirm command execution" screen 2025-06-04 20:17:48 +00:00
oryxel
f104a3d4ca Fix non-vanilla block breaking (#5575)
* Keep track of non-vanilla block break.

* Just use simple BitSet registry.
2025-06-04 20:34:41 +02:00
Eclipse
b708c17600 Implement "waiting for response" screen 2025-06-04 17:41:14 +00:00
Eclipse
2bb9cf664d Fix various things relating to closing and switching of dialogs; implement 2 after-actions; implement exit button on button list dialogs; some cleanup 2025-06-04 16:49:21 +00:00
onebeastchris
f3656f7dac Stop beacon opening earlier, improve debug logging 2025-06-03 18:09:23 +02:00
Eclipse
71cf2ce254 The other dialog inputs, too 2025-06-02 20:12:40 +00:00
Eclipse
779d54812b Work on dialog inputs and dynamic actions 2025-06-02 19:14:27 +00:00
Eclipse
50f7fbbc2e Use simple form when there are no inputs 2025-06-02 17:44:11 +00:00
Eclipse
b3d945dbf8 Multi action dialog 2025-06-02 17:34:23 +00:00
Eclipse
c40fca6fae Dialogs with buttons and stuff 2025-06-02 15:57:28 +00:00
Eclipse
74c43cc1da Work on dialog actions, small JavaRegistryKey refactor 2025-06-02 15:57:15 +00:00
onebeastchris
4f413d3a01 Fix: Egg particles for blue/brown eggs
Fixes https://github.com/GeyserMC/Geyser/issues/5571
2025-06-02 12:34:20 +02:00
Eclipse
6a6706ca1e Start working on dialog translation 2025-06-02 07:27:36 +00:00
onebeastchris
e6668b60b3 It is alive! Preliminarily dropped support for 1.21.50/60, lots of todo's 2025-06-01 21:11:08 +02:00
onebeastchris
a8f9cc229c Initial 1.21.6 changes 2025-06-01 20:21:04 +02:00
oryxel
c80a8a7c41 Don't send item use when player is already using item (#5567) 2025-05-31 11:53:18 +02:00
onebeastchris
8555fdeb84 Don't attempt to use shield while climbing down scaffolding, resolve https://github.com/GeyserMC/Geyser/issues/5552 2025-05-29 22:25:44 +02:00
chris
a0ae4e60d0 Don't set deprecated property on area-effect-cloud entities (#5564)
This should avoid black particles when none are set.
2025-05-28 20:51:56 +02:00
chris
7c47459609 Resolve memory usage issues related to Netty 4.2 update (#5536)
* More proper workaround for direct connection using Netty 4.2

* Add check for outdated Velocity

* BungeeCord support for Netty 4.2

* Use pooled allocator

* Small cleanup: only one allocator system property check, pin comment to static commit

* Set allocator type on Standalone using netty system property

* Don't mess with allocator, both BungeeCord and Velocity set it globally

* Temporarily remove io_uring support

In order to support io_uring transport after the 4.2 update, we'd need to separately handle 4.1 and 4.2 event loop group creation

* Add compileOnly netty io_uring dependency for Geyser-BungeeCord

* Exclude old incubator io_uring dependency on geyser-standalone

---------

Co-authored-by: Camotoy <20743703+Camotoy@users.noreply.github.com>
2025-05-22 17:43:02 +02:00
Eclipse
d0be6d9c48 Use the right javaId when registering non-vanilla block states (#5553) 2025-05-17 17:59:40 +02:00
Oryxel
f616230c52 Fix: boat ground status and position (#5549) 2025-05-16 11:27:03 +02:00
onebeastchris
b705a715d6 Improve unknown host exception wrapping
Related to https://github.com/GeyserMC/Geyser/issues/5542
2025-05-15 21:47:34 +02:00
chris
472ed8c6ce Temporarily revert #5529 (#5550)
This reverts commit 24291ab7a6.
2025-05-12 22:45:10 +02:00
Oryxel
24291ab7a6 Improve teleport validation system (#5529)
* Better teleport handling system.

* Accept teleport right away due to how Geyser handle stuff.

* Fixed build error (oops).

* Requested changes.

* Use entity.position() instead in JavaPlayerPositionTranslator.
2025-05-12 15:03:13 +02:00
onebeastchris
e316fc1461 Fix issue with mobile clients being unable to use shields properly 2025-05-12 11:43:37 +02:00
chris
bcae2206c9 Various movement fixes: Send elytra gliding states properly, send sprinting input earlier, don't allow sprinting on water (#5518)
* Prevent elytra gliding to match Java client behavior

To-Do's:
- Firework boosting is still very broken
- see how BDS handles this mess

Other changes:
Don't send player's onGround when riding vehicles
Support null values for data components (removal of default components)
Fix possible NPE in JavaSetEquipmentTranslator with debug mode enabled

* Add bounding box height update when a player starts gliding, send sprinting state at correct time

* Properly track spin attack - should fix <https://github.com/GeyserMC/Geyser/issues/5262> - and don't allow the Bedrock client to stop gliding mid-air

* also correct pose

* temp

* Cleanup

* Send sprinting state before inputs, resolve issue mentioned in https://github.com/GeyserMC/Geyser/issues/1705

* send sprinting after inputs

* Send vehicle input before sprinting which is sent before player movement

* Slight cleanup

* Rename setDimensions -> setDimensionsFromPose

* setSpinAttack should be protected

* Resolve mobile players being unable to climb down scaffolding

* Don't send STOP_SPRINTING packet if we weren't sprinting
2025-05-11 20:58:37 +02:00
onebeastchris
bfbbf6ce37 Update 1.21.80 item palettes, fixes https://github.com/GeyserMC/Geyser/issues/5535 2025-05-09 08:14:44 +02:00
Aurorawr
503087af1c Add Vibrant Visuals support (#5534) 2025-05-07 12:33:25 -07:00
onebeastchris
b296f1039e Attempt to fix player list not listing players 2025-05-06 20:30:30 +02:00
chris
f40eb7497a Remove leftover debug 2025-05-06 19:49:12 +02:00
chris
c3824990d1 1.21.80 (#5525)
* Initial 1.21.80 changes

* Properly set boat rowing animation, update readme, don't apply form fix to 1.21.80

* Fix <https://github.com/GeyserMC/Geyser/issues/5512>

Forms that are closed don't need response handling
2025-05-06 19:12:45 +02:00
rtm516
0edd85c7b2 Use molang to fix falling leaves & firework particles' color (#5522)
* Use molang to fix firework particle color

* Fix leaf particle color
2025-05-05 20:14:44 +02:00
rtm516
3c51e46d6e Set default player head rarity (#5514)
* Default player head rarity

* Use getOrDefault and correct fallback
2025-05-04 13:12:38 +02:00
rtm516
3021e0cd7b Remove level event type from firework (#5516)
Mappings update
2025-05-03 12:33:44 +02:00
rtm516
ec6977b8bd Load language overrides with UTF-8 encoding (#5515) 2025-05-03 09:03:19 +02:00
Phillipp Glanz
b06f1ed279 Fix: optimize pattern compilation for java to reduce memory (#5508) 2025-04-29 14:01:14 +02:00
Kas-tle
84aac67994 Ensure no more than 1000 entries are in a PlayerListPacket (#5507)
* Ensure no more than 1000 entries are in a PlayerListPacket

Signed-off-by: Joshua Castle <26531652+Kas-tle@users.noreply.github.com>

* Technically previous would fail for e.g. exactly 2000

Signed-off-by: Joshua Castle <26531652+Kas-tle@users.noreply.github.com>

---------

Signed-off-by: Joshua Castle <26531652+Kas-tle@users.noreply.github.com>
2025-04-27 01:48:26 -07:00
Oryxel
066dacaa55 Fixed MobEffect packet event (#5502) 2025-04-22 14:52:11 +02:00
onebeastchris
a9c1da568a Fix: inventory property inheritance when inventories are reused
this would've been easier to solve if people had sent debug logs :(
2025-04-20 00:27:07 +02:00
onebeastchris
ff44698661 Resolve some inventory deadlocks due to re-introduction of limit to force-reopening attempts
closes https://github.com/GeyserMC/Geyser/issues/5493, closes https://github.com/GeyserMC/Geyser/issues/5483
2025-04-19 11:14:38 +02:00
booky
efd4dccb60 Fix issues with custom dimension heights (#5492)
* Fix java maxY and java height getting mixed up

* Fix incorrect size for bedrock chunk section array
2025-04-17 21:06:38 +02:00
onebeastchris
6e162c2cf5 Fix: Interaction entities not showing custom name 2025-04-17 17:23:05 +02:00
chris
91ca77d133 smol inventory translator refactor (#5473)
* gah generics

* compiles

* Add getOpenInventory method

* Remove debug, attempt to resolve barrel issues

* Fix some edge-cases related to lecterns

* inventory -> container renames

* Fix component check in JavaOpenBookTranslator, increase open attempts to 5

* Remove session variable used to force-close the player inventory, use confirm variable instead. Also: fix rare issues where server-side requested lectern closing didn't work for real lectern blocks

* Update core/src/main/java/org/geysermc/geyser/translator/inventory/InventoryTranslator.java

* Use closingInventory for lecterns too

* fix debug
2025-04-15 22:17:26 +02:00
Eclipse
700f93214e Don't throw an error when trying to hash components that aren't hashed (#5487) 2025-04-13 17:46:35 +02:00
Oryxel
23a462d60c More accurate ground status translation (#5481) 2025-04-13 12:47:19 +02:00
rtm516
150e991da3 Fix bedrock resetting colors on newline (#5311)
* Set color codes after newline

* Cleanup

* Fix and add new test

* Update MessageTranslator.java

* Correct the asset for test
2025-04-11 13:40:57 +02:00