Commit 2f1cb9b
Fix: Shelf block entity items rendered in wrong slot for Bedrock clients (#6225)
* Fix: Shelf block entity items rendered in wrong slot for Bedrock clients
Bedrock determines shelf item position by list index rather than
a Slot tag, so a sparse Items list causes items to shift left into
the wrong visual position. This produces a dense 3-element list
with empty entries for unoccupied slots.
* Move static final EMPTY_ITEM variable to BedrockItemBuilder, add comment with last tested note
---------
Co-authored-by: onebeastchris <github@onechris.mozmail.com>1 parent 0e1c009 commit 2f1cb9b
File tree
2 files changed
+24
-5
lines changed- core/src/main/java/org/geysermc/geyser/translator
- item
- level/block/entity
2 files changed
+24
-5
lines changedLines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
44 | 47 | | |
45 | 48 | | |
46 | 49 | | |
| |||
Lines changed: 21 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | | - | |
| 37 | + | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| 43 | + | |
| 44 | + | |
41 | 45 | | |
42 | 46 | | |
43 | 47 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
48 | 64 | | |
49 | 65 | | |
0 commit comments