mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 03:49:14 +00:00
Convert Forge to use Official mappings. Mojang released their obfuscation mappings but we have not used them up until now due to wanting to get their license to be more explicitly permissive. It is clear that their intent is to allow us to use their names for developing mods like this. See the full wording, and our interpretation here: https://github.com/MinecraftForge/MCPConfig/blob/master/Mojang.md
20 lines
793 B
Diff
20 lines
793 B
Diff
--- a/net/minecraft/block/OreBlock.java
|
|
+++ b/net/minecraft/block/OreBlock.java
|
|
@@ -31,12 +_,10 @@
|
|
|
|
public void func_220062_a(BlockState p_220062_1_, ServerWorld p_220062_2_, BlockPos p_220062_3_, ItemStack p_220062_4_) {
|
|
super.func_220062_a(p_220062_1_, p_220062_2_, p_220062_3_, p_220062_4_);
|
|
- if (EnchantmentHelper.func_77506_a(Enchantments.field_185306_r, p_220062_4_) == 0) {
|
|
- int i = this.func_220281_a(p_220062_2_.field_73012_v);
|
|
- if (i > 0) {
|
|
- this.func_180637_b(p_220062_2_, p_220062_3_, i);
|
|
- }
|
|
- }
|
|
+ }
|
|
|
|
+ @Override
|
|
+ public int getExpDrop(BlockState state, net.minecraft.world.IWorldReader reader, BlockPos pos, int fortune, int silktouch) {
|
|
+ return silktouch == 0 ? this.func_220281_a(RANDOM) : 0;
|
|
}
|
|
}
|