Skip to content

Commit

Permalink
Merge pull request #1059 from wdfaESfaef/mob-transform
Browse files Browse the repository at this point in the history
修复僵尸转换的铁砧问题
  • Loading branch information
Gu-ZT authored Jul 21, 2024
2 parents e4d03a9 + 7cd0d91 commit 5538892
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 5538892

Please sign in to comment.