mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 19:59:42 +00:00
Fix dig speed on redstone ore and obsidian.
This commit is contained in:
1 parent
40d02fe6c3
commit
a6827f9820
2 files changed
+4
-4
No files matched your search
@@ -186,7 +186,7 @@
|
||||
}
|
||||
|
||||
protected ItemStack func_149644_j(int p_149644_1_)
|
||||
@@ -1114,6 +1147,1062 @@
|
||||
@@ -1114,6 +1147,1065 @@
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -1189,6 +1189,7 @@
|
||||
+ setHarvestLevel(toolClass, level, m);
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ /**
|
||||
+ * Sets or removes the tool and level required to harvest this block.
|
||||
+ *
|
||||
@@ -1241,6 +1242,8 @@
|
||||
+ */
|
||||
+ public boolean isToolEffective(String type, int metadata)
|
||||
+ {
|
||||
+ if ("pickaxe".equals(type) && (this == Blocks.redstone_ore || this == Blocks.lit_redstone_ore || this == Blocks.obsidian))
|
||||
+ return false;
|
||||
+ if (harvestTool[metadata] == null) return true;
|
||||
+ return harvestTool[metadata].equals(type);
|
||||
+ }
|
||||
|
||||
@@ -178,9 +178,6 @@ public class ForgeHooks
|
||||
Blocks.iron_block.setHarvestLevel("pickaxe", 1);
|
||||
Blocks.lapis_ore.setHarvestLevel("pickaxe", 1);
|
||||
Blocks.lapis_block.setHarvestLevel("pickaxe", 1);
|
||||
//MinecraftForge.removeBlockEffectiveness(Blocks.redstone_ore, "pickaxe");
|
||||
//MinecraftForge.removeBlockEffectiveness(Blocks.obsidian, "pickaxe");
|
||||
//MinecraftForge.removeBlockEffectiveness(Blocks.lit_redstone_ore, "pickaxe");
|
||||
}
|
||||
|
||||
public static int getTotalArmorValue(EntityPlayer player)
|
||||
|
||||
Reference in new issue
Block a user