Skip to content

Commit

Permalink
修复僵尸转换的铁砧问题
Browse files Browse the repository at this point in the history
  • Loading branch information
wdfaESfaef committed Jul 19, 2024
1 parent f7c93c9 commit 7cd0d91
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,8 @@ public void accept(Entity oldEntity, Entity newEntity) {
if (itemStack.is(Items.ANVIL)
|| itemStack.is(Items.CHIPPED_ANVIL)
|| itemStack.is(Items.DAMAGED_ANVIL)) {
o.setItemInHand(value, ModBlocks.GIANT_ANVIL.asItem().getDefaultInstance());
if (newEntity instanceof Giant) {
n.setItemInHand(value, ModBlocks.GIANT_ANVIL.asItem().getDefaultInstance());
o.setItemInHand(value, ModBlocks.GIANT_ANVIL.asItem().getDefaultInstance());
}
if (n instanceof Mob mob) {
mob.setDropChance(
Expand Down

0 comments on commit 7cd0d91

Please sign in to comment.