Fixed RS blocks requiring a pickaxe to be broken, fixes #1473
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
### 1.5.19
|
||||
- Updated Forge to 2493 (MC 1.12.2) (raoulvdberge)
|
||||
- Fixed RS blocks requiring a pickaxe to be broken (raoulvdberge)
|
||||
|
||||
### 1.5.18
|
||||
- Added Project E integration for the External Storage on the Transmutation Table (raoulvdberge)
|
||||
|
@@ -53,6 +53,7 @@ import net.minecraftforge.common.crafting.CraftingHelper;
|
||||
import net.minecraftforge.common.crafting.IIngredientFactory;
|
||||
import net.minecraftforge.common.crafting.JsonContext;
|
||||
import net.minecraftforge.event.RegistryEvent;
|
||||
import net.minecraftforge.event.entity.player.PlayerEvent;
|
||||
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
|
||||
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
|
||||
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
|
||||
@@ -295,6 +296,13 @@ public class ProxyCommon {
|
||||
}
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
public void onHarvestCheck(PlayerEvent.HarvestCheck e) {
|
||||
if (e.getTargetBlock().getBlock() instanceof BlockBase) {
|
||||
e.setCanHarvest(true); // Allow break without tool
|
||||
}
|
||||
}
|
||||
|
||||
private void registerBlock(BlockBase block) {
|
||||
blocksToRegister.add(block);
|
||||
|
||||
|
Reference in New Issue
Block a user