Anvil crafting fix
This commit is contained in:
parent
b5f3a4f511
commit
ba7ea67f0c
3 changed files with 3 additions and 5 deletions
|
@ -8,7 +8,7 @@ yarn_mappings= 6
|
||||||
loader_version= 0.11.6
|
loader_version= 0.11.6
|
||||||
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version = 0.10.1-pre
|
mod_version = 0.10.2-pre
|
||||||
maven_group = ru.betterend
|
maven_group = ru.betterend
|
||||||
archives_base_name = better-end
|
archives_base_name = better-end
|
||||||
|
|
||||||
|
|
|
@ -87,8 +87,7 @@ public abstract class AnvilMenuMixin extends ItemCombinerMenu implements AnvilSc
|
||||||
world.levelEvent(1030, blockPos, 0);
|
world.levelEvent(1030, blockPos, 0);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
//TODO: no more return, does this still work?
|
info.cancel();
|
||||||
//info.setReturnValue(stack);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -81,8 +81,7 @@ public class AnvilRecipe implements Recipe<Container>, BetterEndRecipe {
|
||||||
if (!player.isCreative()) {
|
if (!player.isCreative()) {
|
||||||
if (!checkHammerDurability(craftingInventory, player)) return ItemStack.EMPTY;
|
if (!checkHammerDurability(craftingInventory, player)) return ItemStack.EMPTY;
|
||||||
ItemStack hammer = craftingInventory.getItem(1);
|
ItemStack hammer = craftingInventory.getItem(1);
|
||||||
hammer.hurtAndBreak(this.damage, player, entity ->
|
hammer.hurtAndBreak(this.damage, player, entity -> entity.broadcastBreakEvent((InteractionHand) null));
|
||||||
entity.broadcastBreakEvent((InteractionHand) null));
|
|
||||||
}
|
}
|
||||||
return this.assemble(craftingInventory);
|
return this.assemble(craftingInventory);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue