Skip to content

Commit

Permalink
Drop raw ore instead of ore block
Browse files Browse the repository at this point in the history
  • Loading branch information
wode490390 authored and boybook committed Aug 22, 2023
1 parent e5c0a23 commit 9c349cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/cn/nukkit/block/BlockOreGold.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public String getName() {
@Override
public Item[] getDrops(Item item) {
if (item.isPickaxe() && item.getTier() >= ItemTool.TIER_IRON) {
if (GameVersion.V1_19_0.isAvailable()) { // V1_17_0
if (GameVersion.V1_17_0.isAvailable()) {
return new Item[]{
Item.get(Item.RAW_GOLD),
};
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/cn/nukkit/block/BlockOreIron.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public String getName() {
@Override
public Item[] getDrops(Item item) {
if (item.isPickaxe() && item.getTier() >= ItemTool.TIER_STONE) {
if (GameVersion.V1_19_0.isAvailable()) { // V1_17_0
if (GameVersion.V1_17_0.isAvailable()) {
return new Item[]{
Item.get(Item.RAW_IRON),
};
Expand Down

0 comments on commit 9c349cf

Please sign in to comment.