ModificationStation / StationAPI

A general use API for Fabric Loader mods on legacy Minecraft versions.
83 stars 19 forks source link

canHarvest hook #77

Open 2zqa opened 10 months ago

2zqa commented 10 months ago

Currently it is not possible to inject into PlayerInventory's canHarvest method, because StationAPI already does this. However it can still be useful for mods to change the behavior of this method. Is there a way to achieve this currently (without injecting into StationFlatteningPlayer)? If not, could there be a hook or something similar available?

For context: we're trying to conditionally (based on block metadata) increase the speed when mining with a null itemstack.