update to Paper 26.3: load biome colors from vanilla data, fix dappled forest grass
Biome grass/foliage/dry-foliage/water colors and grass color modifiers are now read from the server's built-in worldgen biome data at runtime, with a 26.3 snapshot as fallback. Fixes missing biomes (dappled_forest, pale_garden, sulfur_caves) and several outdated values. Replace deprecated ExactChoice constructors.
This commit is contained in:
1 parent
8dd295e5d6
commit
2d84a35cc4
4 files changed
+168
-100
No files matched your search
@@ -63,8 +63,8 @@ public final class SurvivalRecipes {
|
||||
loadableCameras.add(CameraItems.createCamera(i));
|
||||
}
|
||||
ShapelessRecipe load = new ShapelessRecipe(LOAD, CameraItems.createCamera(1));
|
||||
load.addIngredient(new RecipeChoice.ExactChoice(loadableCameras));
|
||||
load.addIngredient(new RecipeChoice.ExactChoice(CameraItems.createFilm()));
|
||||
load.addIngredient(RecipeChoice.exactChoice(loadableCameras));
|
||||
load.addIngredient(RecipeChoice.exactChoice(CameraItems.createFilm()));
|
||||
Bukkit.addRecipe(load, false);
|
||||
|
||||
// Copy photo: photo + film. The photo carries a variable map id (cannot be enumerated), so it
|
||||
@@ -72,7 +72,7 @@ public final class SurvivalRecipes {
|
||||
// its real texture shows in the book.
|
||||
ShapelessRecipe copy = new ShapelessRecipe(COPY, new ItemStack(Material.FILLED_MAP));
|
||||
copy.addIngredient(new RecipeChoice.MaterialChoice(Material.FILLED_MAP));
|
||||
copy.addIngredient(new RecipeChoice.ExactChoice(CameraItems.createFilm()));
|
||||
copy.addIngredient(RecipeChoice.exactChoice(CameraItems.createFilm()));
|
||||
Bukkit.addRecipe(copy, false);
|
||||
|
||||
// Cover /reload while players are online; fresh joins are handled by JoinListener.
|
||||
|
||||
Reference in new issue
Block a user