Skip to content

Commit

Permalink
Fixed incompatibility issue with BTWaila
Browse files Browse the repository at this point in the history
  • Loading branch information
kill05 committed Jun 11, 2024
1 parent 8d0e0ca commit 45c34d9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/main/java/com/github/kill05/items/tool/ArchitectTool.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,19 +64,22 @@ public ArchitectTool(String toolId) {
//todo: remove once 7.2-pre2 comes out (need itemstack argument)
@Override
public boolean canHarvestBlock(Block block) {
throw new UnsupportedOperationException("Use canHarvestBlock(ItemStack, Block) instead.");
ArchitectTools.LOGGER.warn("canHarvestBlock(Block) was called on an ArchitectTool. canHarvestBlock(ItemStack, Block) should be used instead.");
return super.canHarvestBlock(block);
}

//todo: replace once 7.2-pre2 comes out (need itemstack argument)
@Override
public int getDamageVsEntity(Entity entity) {
throw new UnsupportedOperationException("use getDamageVsEntity(Entity, ItemStack) instead.");
ArchitectTools.LOGGER.warn("getDamageVsEntity(Entity) was called on an ArchitectTool. getDamageVsEntity(Entity, Itemstack) should be used instead.");
return super.getDamageVsEntity(entity);
}

//todo: replace once 7.2-pre2 comes out (need itemstack argument)
@Override
public int getMaxDamage() {
throw new UnsupportedOperationException("Use getMaxDamage(ItemStack) instead.");
ArchitectTools.LOGGER.warn("getMaxDamage() was called on an ArchitectTool. getMaxDamage(ItemStack) should be used instead.");
return super.getMaxDamage();
}

@Override
Expand Down

0 comments on commit 45c34d9

Please sign in to comment.