Fix recipe book items order (#11787)

This commit is contained in:
Kobe ⑧ 2024-12-23 09:09:12 -08:00 committed by GitHub
parent bd4c235c2f
commit 793d36106d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7,7 +7,7 @@
- return new RecipeMap(builder.build(), builder1.build()); - return new RecipeMap(builder.build(), builder1.build());
- } - }
+ // CraftBukkit start - mutable + // CraftBukkit start - mutable
+ return new RecipeMap(com.google.common.collect.LinkedHashMultimap.create(builder.build()), com.google.common.collect.Maps.newHashMap(builder1.build())); + return new RecipeMap(com.google.common.collect.LinkedHashMultimap.create(builder.build()), com.google.common.collect.Maps.newLinkedHashMap(builder1.build()));
+ } + }
+ +
+ public void addRecipe(RecipeHolder<?> holder) { + public void addRecipe(RecipeHolder<?> holder) {