1
0
mirror of https://github.com/GeyserMC/Geyser.git synced 2026-01-06 15:41:50 +00:00
Commit Graph

1688 Commits

Author SHA1 Message Date
onebeastchris
ca23e501b4 Cleanup api, remove unused stored item mappings 2025-10-03 20:21:44 +02:00
onebeastchris
e80863d490 Merge remote-tracking branch 'upstream/master' into feature/1.21.9 2025-10-03 20:20:03 +02:00
onebeastchris
4297996d7a Fix https://github.com/GeyserMC/Geyser/issues/5868 2025-10-03 17:30:48 +02:00
chris
26881466cb Feature: Fixup form closing (#5872) 2025-10-03 17:26:10 +02:00
Eclipse
33b95b0f9b Merge remote-tracking branch 'upstream/master' into feature/1.21.9 2025-09-30 17:59:04 +00:00
Eclipse
3612d9cf9b Update/fix bootstraps, target new mappings 2025-09-30 17:39:41 +00:00
Eclipse
71803c0ca8 Fix client crash when custom blocks are registered (#5858) 2025-09-30 15:45:18 +00:00
chris
a1cb9bdb52 Minor fixes for custom blocks on 1.21.100+, custom skull hashes, and form/inventory opening (#5856)
* Fix: skull hash pattern regex, close current form/inventory when a new form/inventory is sent, fix face_dimming for custom blocks on 1.21.100+

* address review
2025-09-30 17:10:19 +02:00
Eclipse
b292793d0e Merge remote-tracking branch 'upstream/master' into feature/1.21.9 2025-09-30 13:29:43 +00:00
Eclipse
870b199f35 Basic mannequin implementation 2025-09-30 13:10:14 +00:00
Eclipse
5e69361d69 Make it build, update MCPL 2025-09-30 13:10:14 +00:00
Eclipse
ef55f76f0d Start working on mannequins 2025-09-30 13:10:14 +00:00
Eclipse
d94bd7c806 GeyserItemStack.asItem() == Items.ITEM -> GeyserItemStack.is(Items.ITEM) and various other item stack cleanups 2025-09-30 13:10:14 +00:00
Eclipse
3757f3e98d Reduce direct access to TagCache 2025-09-30 13:10:14 +00:00
Eclipse
b7fe77c838 Reduce usage of equipment map 2025-09-30 13:10:13 +00:00
Eclipse
21bb3df7df Only store GeyserItemStacks for equipment in LivingEntity 2025-09-30 13:10:13 +00:00
Eclipse
af20c68236 Implement copper golems 2025-09-30 13:10:13 +00:00
Eclipse
4127aff527 Clean up some things related to item translation and UUID parsing 2025-09-30 13:10:13 +00:00
Eclipse
d7e4c21a15 Finish ItemStackParser, clean up vault translator, finish implementing shelves 2025-09-30 13:10:13 +00:00
Eclipse
76d6c150a9 Work on ItemStackParser for shelf and vault block entity translators, add new game rules 2025-09-30 13:10:13 +00:00
Eclipse
d2dd949eeb Support bedrock 1.21.110 (#5844)
* Initial work on 1.21.110

* Drop support for 1.21.70 and 1.21.80

* Update README

* Target new mappings, build on Protocol without adventure

* Add item tags for 1.21.100 and 1.21.110

* Target protocol with separate adventure module, cleanup

* Use upstream protocol library

* Update to 844, send fake chest whenever a single chest can be merged into a double chest on the client

* Target mappings at master

* Actually update to 844

---------

Co-authored-by: chris <github@onechris.mozmail.com>
2025-09-30 12:59:14 +00:00
chris
c694daf81b Block breaking calculations v2 (#5846)
* Make block break progress calculations more accurate
* Track blockstate / item updates geyser-sided
* Fix: ghost blocks in specific circumstances
2025-09-30 01:05:16 +02:00
Phillipp Glanz
30a44a04f0 Cleanup: Use compiled patterns where possible (#5523)
* Refactor: use a compiled pattern for skin hash validation
* Refactor: use compiled pattern for IP address validation
* Refactor: simplify extension filter to a single compiled pattern
2025-09-29 15:02:48 +02:00
onebeastchris
1600ccb2c2 Fix: Reset current block variables after block breaking is aborted 2025-09-26 00:11:41 +02:00
onebeastchris
7588b9fed1 Fix: Client-side happy ghast movement is not influenced by the NO_AI flag 2025-09-25 23:16:33 +02:00
Eclipse
9666390ba2 Expose CodeOfConductManager through API events 2025-09-25 15:24:46 +00:00
Eclipse
b31d01a1ef Translate copper golem statue poses 2025-09-25 14:43:11 +00:00
Eclipse
346a777e77 Rework/fix SkullBlockEntityTranslator, improve code of conduct implementation 2025-09-24 17:49:40 +00:00
Eclipse
5d984dd516 Basic code of conduct implementation 2025-09-24 08:11:57 +00:00
Eclipse
19665f5836 Translate custom skull items if the profile is resolved 2025-09-24 07:07:33 +00:00
Eclipse
1df98f961a Work on proper ResolvableProfile resolving 2025-09-23 18:57:56 +00:00
Eclipse
0d4bc0f984 Target 1.21.9 MCPL, write copper drop fallbacks/conversion, fix some stuff and write TODOs 2025-09-23 15:29:58 +00:00
Eclipse
22da1d614e Initial work on 1.21.9 2025-09-23 15:03:21 +00:00
Eclipse
d929fbe601 Add item tags for 1.21.100 and 1.21.110 2025-09-23 15:02:19 +00:00
Eclipse
baa89cc35c Target new mappings, build on Protocol without adventure 2025-09-21 22:15:45 +00:00
Eclipse
77aee9a064 Drop support for 1.21.70 and 1.21.80 2025-09-21 20:02:09 +00:00
Eclipse
72efc2aa0f Initial work on 1.21.110 2025-09-21 18:14:31 +00: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
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