Fixed not being able to place blocks on top of certain repair/salvage

anvils
This commit is contained in:
nossr50
2020-03-19 19:00:50 -07:00
parent 280889e11a
commit 8d7f1cb595
4 changed files with 24 additions and 17 deletions

View File

@@ -89,7 +89,9 @@ public final class BlockUtils {
* otherwise
*/
public static boolean canActivateTools(BlockState blockState) {
return !mcMMO.getMaterialMapStore().isToolActivationBlackListed(blockState.getType());
return !mcMMO.getMaterialMapStore().isToolActivationBlackListed(blockState.getType())
&& blockState.getType() != Repair.anvilMaterial
&& blockState.getType() != Salvage.anvilMaterial;
}
/**