Skip to content

Commit

Permalink
#21 修复头颅复制(由于硬编码问题需要额外判断)
Browse files Browse the repository at this point in the history
  • Loading branch information
QuanhuZeYu committed Jan 7, 2025
1 parent 5bf6877 commit 47b5097
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ public void handleSurvivalMode(Vector3i pos, Block block, int meta) {
TileEntity tileEntity = world.getTileEntity(pos.x, pos.y, pos.z);
ItemInWorldManager itemInWorldManager = player.theItemInWorldManager;
ItemStack holdItem = itemInWorldManager.thisPlayerMP.getCurrentEquippedItem();
block.onBlockHarvested(world, pos.x, pos.y, pos.z, meta, player);
if (!Block.isEqualTo(block, Blocks.skull)) {
block.onBlockHarvested(world, pos.x, pos.y, pos.z, meta, player);
}

if (holdItem != null && holdItem.getItem() != null) {
// holdItem.func_150999_a(world, block, pos.x, pos.y, pos.z, player); // 拆解出来为以下步骤
Expand Down

0 comments on commit 47b5097

Please sign in to comment.