more compile fixes

This commit is contained in:
Jake Potrebic
2024-12-15 14:12:31 -08:00
parent ec57b99bf5
commit cb51a4fbcd
10 changed files with 42 additions and 9 deletions

View File

@@ -34,7 +34,7 @@
+ // Paper end - PlayerBedFailEnterEvent
+ // CraftBukkit start - handling bed explosion from below here
+ if (event.getWillExplode()) { // Paper - PlayerBedFailEnterEvent
+ this.explodeBed(finaliblockdata, world, finalblockposition);
+ this.explodeBed(finaliblockdata, level, finalblockposition);
+ } else
+ // CraftBukkit end
if (bedSleepingProblem.getMessage() != null) {

View File

@@ -191,7 +191,7 @@
}
- public static int getTotalCookTime(ServerLevel level, AbstractFurnaceBlockEntity furnace) {
+ private static int getTotalCookTime(@Nullable ServerLevel level, AbstractFurnaceBlockEntity furnace, RecipeType<? extends AbstractCookingRecipe> recipeType, double cookSpeedMultiplier) { // Paper - cook speed multiplier API
+ public static int getTotalCookTime(@Nullable ServerLevel level, AbstractFurnaceBlockEntity furnace, RecipeType<? extends AbstractCookingRecipe> recipeType, double cookSpeedMultiplier) { // Paper - cook speed multiplier API
SingleRecipeInput singleRecipeInput = new SingleRecipeInput(furnace.getItem(0));
- return furnace.quickCheck.getRecipeFor(singleRecipeInput, level).map(recipe -> recipe.value().cookingTime()).orElse(200);
+ // Paper start - cook speed multiplier API