diff options
author | Alexander Harkness <me@bearbin.net> | 2020-04-07 23:59:29 +0200 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2020-04-10 15:07:16 +0200 |
commit | b8141f6c875d30ea679d10d23c0f376251e05073 (patch) | |
tree | 3da321d3f6185aca7ec0f924d78ddec76ec6355b | |
parent | Change stained clay hardness value (diff) | |
download | cuberite-b8141f6c875d30ea679d10d23c0f376251e05073.tar cuberite-b8141f6c875d30ea679d10d23c0f376251e05073.tar.gz cuberite-b8141f6c875d30ea679d10d23c0f376251e05073.tar.bz2 cuberite-b8141f6c875d30ea679d10d23c0f376251e05073.tar.lz cuberite-b8141f6c875d30ea679d10d23c0f376251e05073.tar.xz cuberite-b8141f6c875d30ea679d10d23c0f376251e05073.tar.zst cuberite-b8141f6c875d30ea679d10d23c0f376251e05073.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Items/ItemHandler.cpp | 44 | ||||
-rw-r--r-- | src/Items/ItemPickaxe.h | 1 |
2 files changed, 39 insertions, 6 deletions
diff --git a/src/Items/ItemHandler.cpp b/src/Items/ItemHandler.cpp index 1c552265a..807be9393 100644 --- a/src/Items/ItemHandler.cpp +++ b/src/Items/ItemHandler.cpp @@ -715,18 +715,29 @@ bool cItemHandler::CanHarvestBlock(BLOCKTYPE a_BlockType) switch (a_BlockType) { case E_BLOCK_ANVIL: + case E_BLOCK_BLACK_GLAZED_TERRACOTTA: + case E_BLOCK_BLOCK_OF_COAL: + case E_BLOCK_BLOCK_OF_REDSTONE: + case E_BLOCK_BLUE_GLAZED_TERRACOTTA: case E_BLOCK_BONE_BLOCK: + case E_BLOCK_BREWING_STAND: case E_BLOCK_BRICK: + case E_BLOCK_BRICK_STAIRS: + case E_BLOCK_BROWN_GLAZED_TERRACOTTA: case E_BLOCK_CAULDRON: case E_BLOCK_COAL_ORE: case E_BLOCK_COBBLESTONE: case E_BLOCK_COBBLESTONE_STAIRS: case E_BLOCK_COBBLESTONE_WALL: case E_BLOCK_COBWEB: + case E_BLOCK_CONCRETE: + case E_BLOCK_CYAN_GLAZED_TERRACOTTA: case E_BLOCK_DIAMOND_BLOCK: case E_BLOCK_DIAMOND_ORE: + case E_BLOCK_DISPENSER: case E_BLOCK_DOUBLE_RED_SANDSTONE_SLAB: case E_BLOCK_DOUBLE_STONE_SLAB: + case E_BLOCK_DROPPER: case E_BLOCK_EMERALD_ORE: case E_BLOCK_ENCHANTMENT_TABLE: case E_BLOCK_END_BRICKS: @@ -734,35 +745,54 @@ bool cItemHandler::CanHarvestBlock(BLOCKTYPE a_BlockType) case E_BLOCK_FURNACE: case E_BLOCK_GOLD_BLOCK: case E_BLOCK_GOLD_ORE: + case E_BLOCK_GRAY_GLAZED_TERRACOTTA: + case E_BLOCK_GREEN_GLAZED_TERRACOTTA: + case E_BLOCK_HARDENED_CLAY: + case E_BLOCK_HEAVY_WEIGHTED_PRESSURE_PLATE: + case E_BLOCK_HOPPER: + case E_BLOCK_IRON_BARS: case E_BLOCK_IRON_BLOCK: + case E_BLOCK_IRON_DOOR: case E_BLOCK_IRON_ORE: case E_BLOCK_IRON_TRAPDOOR: case E_BLOCK_LAPIS_BLOCK: case E_BLOCK_LAPIS_ORE: + case E_BLOCK_LIGHT_BLUE_GLAZED_TERRACOTTA: + case E_BLOCK_LIGHT_GRAY_GLAZED_TERRACOTTA: + case E_BLOCK_LIGHT_WEIGHTED_PRESSURE_PLATE: + case E_BLOCK_LIME_GLAZED_TERRACOTTA: case E_BLOCK_LIT_FURNACE: + case E_BLOCK_MAGENTA_GLAZED_TERRACOTTA: case E_BLOCK_MAGMA: case E_BLOCK_MOB_SPAWNER: case E_BLOCK_MOSSY_COBBLESTONE: + case E_BLOCK_NETHERRACK: case E_BLOCK_NETHER_BRICK: - case E_BLOCK_NETHER_BRICK_STAIRS: case E_BLOCK_NETHER_BRICK_FENCE: - case E_BLOCK_NETHERRACK: - case E_BLOCK_RED_SANDSTONE_SLAB: + case E_BLOCK_NETHER_BRICK_STAIRS: + case E_BLOCK_NETHER_QUARTZ_ORE: case E_BLOCK_OBSERVER: case E_BLOCK_OBSIDIAN: + case E_BLOCK_ORANGE_GLAZED_TERRACOTTA: + case E_BLOCK_PINK_GLAZED_TERRACOTTA: case E_BLOCK_PRISMARINE_BLOCK: + case E_BLOCK_PURPLE_GLAZED_TERRACOTTA: case E_BLOCK_PURPUR_BLOCK: case E_BLOCK_PURPUR_DOUBLE_SLAB: case E_BLOCK_PURPUR_PILLAR: case E_BLOCK_PURPUR_SLAB: case E_BLOCK_PURPUR_STAIRS: + case E_BLOCK_QUARTZ_BLOCK: + case E_BLOCK_QUARTZ_STAIRS: + case E_BLOCK_REDSTONE_ORE: + case E_BLOCK_REDSTONE_ORE_GLOWING: + case E_BLOCK_RED_GLAZED_TERRACOTTA: case E_BLOCK_RED_NETHER_BRICK: case E_BLOCK_RED_SANDSTONE: + case E_BLOCK_RED_SANDSTONE_SLAB: case E_BLOCK_RED_SANDSTONE_STAIRS: - case E_BLOCK_REDSTONE_ORE: - case E_BLOCK_REDSTONE_ORE_GLOWING: - case E_BLOCK_SANDSTONE_STAIRS: case E_BLOCK_SANDSTONE: + case E_BLOCK_SANDSTONE_STAIRS: case E_BLOCK_SNOW: case E_BLOCK_STONE: case E_BLOCK_STONE_BRICKS: @@ -770,6 +800,8 @@ bool cItemHandler::CanHarvestBlock(BLOCKTYPE a_BlockType) case E_BLOCK_STONE_PRESSURE_PLATE: case E_BLOCK_STONE_SLAB: case E_BLOCK_VINES: + case E_BLOCK_WHITE_GLAZED_TERRACOTTA: + case E_BLOCK_YELLOW_GLAZED_TERRACOTTA: { return false; } diff --git a/src/Items/ItemPickaxe.h b/src/Items/ItemPickaxe.h index 58df18428..fd3532729 100644 --- a/src/Items/ItemPickaxe.h +++ b/src/Items/ItemPickaxe.h @@ -47,6 +47,7 @@ public: virtual bool CanHarvestBlock(BLOCKTYPE a_BlockType) override { + // NOTICE: Make sure to update cItemHandler::CanHarvestBlock() if adding new blocks here! switch (a_BlockType) { case E_BLOCK_OBSIDIAN: |