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

1491 Commits

Author SHA1 Message Date
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
SamB440
6fe38af43d Set ground status to false for teleports (#5461) 2025-04-08 23:57:22 +02:00
onebeastchris
ae130cf5a5 Fix sign reading in specific cases where the "text" key is omitted 2025-04-03 13:18:38 +02:00
onebeastchris
c47264d126 Fix: Lecterns locking up container opening
closes https://github.com/GeyserMC/Geyser/issues/5456
2025-04-02 23:12:02 +02:00
onebeastchris
c6101d71db Don't convert sign text multiple times 2025-04-02 22:56:09 +02:00
onebeastchris
8128fb9df2 Fix text on signs, remove unused Minecart entity property 2025-04-02 22:44:50 +02:00
onebeastchris
db0576099b Indicate 1.21.71 support in readme 2025-04-01 19:01:07 +02:00
onebeastchris
db588da832 Update mappings 2025-04-01 18:54:34 +02:00
onebeastchris
3239e612dd Fix NPE that can rarely occur when debugging inventories 2025-04-01 18:08:15 +02:00
onebeastchris
90e9c3a123 Fix https://github.com/GeyserMC/Geyser/issues/5447 2025-04-01 13:18:26 +02:00
onebeastchris
6ca2a2391d Drop Bedrock 1.21.40 support 2025-04-01 00:22:50 +02:00
chris
2b5369ff8b Attempt to resolve 1.21.70 inventory issues (#5443)
* Inventory translators are now part of inventories, try fixing inventory reusing, use NetworkStackLatency hack

* Add debug, re-add force open hack

* don't log to info

* fix debug npe

* Don't set setPending when opening pending inventories, add more delay to re-opening rejected inventories

* Use inventory#getTranslator to hopefully avoid translator/inventory desync

* Minor cleanup

* Update core/src/main/java/org/geysermc/geyser/GeyserLogger.java

* Reuse inventories whenever possible, prevent bedrock inventory id conflicts

* Fix debug logging with arguments, don't attempt to re-use inventory that's currently closing

* Some documentation, include pending inventories in re-use check

* "bad html entity"

* add wayyyy more debugging to container reusing checks

* yeet java id check

* Fixes related to hacky plugins that spam open screen packets

* no clue how this slipped by

* Don't reuse real blocks, yeet Inventory#isDelayed
2025-03-31 21:36:19 +02:00
Eclipse
b46651e3a6 Fix hashing of item container contents component 2025-03-31 14:20:10 +00:00
Eclipse
de1c1975b0 Fix trim materials (somewhat), other minor things 2025-03-30 15:09:03 +00:00
Eclipse
0bd3db4075 Finish documentation on hashing classes, correctly hash data component removals in item stacks, some cleanups 2025-03-29 11:56:32 +00:00
Eclipse
e219b1c156 Correctly hash changed items in ClickPlan 2025-03-29 11:38:01 +00:00
onebeastchris
37d04a2c6f Fix saddle inventory slot setting 2025-03-29 02:40:04 +01:00
Eclipse
6e790b89c6 Implement data component hashing in inventory transactions, disable printing tests 2025-03-28 21:22:21 +00:00
Eclipse
dbd3187349 Reorganise RegistryHasher, write more documentation 2025-03-28 20:28:58 +00:00