9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-29 03:49:15 +00:00

bump versions

This commit is contained in:
XiaoMoMi
2025-03-18 23:37:34 +08:00
parent 3ab223654d
commit 5fb238f090
18 changed files with 86 additions and 24 deletions

View File

@@ -343,9 +343,7 @@ public class BukkitFurnitureManager implements FurnitureManager {
return;
}
Vector3f seatPos = MiscUtils.getVector3f(vector3f);
if (!furniture.releaseSeat(seatPos)) {
plugin.logger().warn("Failed to release seat " + seatPos + " for player " + player.getName());
}
furniture.releaseSeat(seatPos);
}
protected boolean isSeatCarrierType(Entity entity) {

View File

@@ -88,7 +88,7 @@ public class AxeItemBehavior extends ItemBehavior {
if (!InteractUtils.isInteractable(BlockStateUtils.getBlockOwnerIdFromState(state.vanillaBlockState().handle()),
bukkitPlayer, BlockStateUtils.fromBlockData(state.vanillaBlockState().handle()),
context.getHitResult(), item
)) {
) || player.isSecondaryUseActive()) {
player.swingHand(context.getHand());
}
// shrink item amount

View File

@@ -54,6 +54,9 @@ public class BukkitRecipeManager implements RecipeManager<ItemStack> {
private static BukkitRecipeManager instance;
static {
BUKKIT_RECIPE_FACTORIES.put(RecipeTypes.SMITHING_TRANSFORM, (key, recipe) -> {
});
BUKKIT_RECIPE_FACTORIES.put(RecipeTypes.SHAPED, (key, recipe) -> {
CustomShapedRecipe<ItemStack> ceRecipe = (CustomShapedRecipe<ItemStack>) recipe;
ShapedRecipe shapedRecipe = new ShapedRecipe(key, ceRecipe.result(ItemBuildContext.EMPTY));

View File

@@ -832,4 +832,11 @@ public class RecipeEventListener implements Listener {
plugin.logger().warn("Failed to correct used recipe", e);
}
}
@EventHandler(ignoreCancelled = true)
public void onSmithingTransform(PrepareSmithingEvent event) {
SmithingInventory inventory = event.getInventory();
if (!(inventory.getRecipe() instanceof SmithingTransformRecipe recipe)) return;
}
}