Skip to content

Commit d3e82d0

Browse files
Meefy777halotroop2288
authored andcommitted
Reforged: Added Paxel tool class to ForgeHooks
1 parent 3f3c53d commit d3e82d0

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

forge_common/net/minecraft/src/forge/ForgeHooks.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ public static boolean canToolHarvestBlock(Block bl, int md, ItemStack itemstack)
6161
Object[] ta=tc.toArray();
6262
String cls=(String)ta[0]; int hvl=(Integer)ta[1];
6363

64+
if (cls.equalsIgnoreCase("paxel")) {
65+
return true;
66+
}
67+
6468
Integer bhl=(Integer)toolHarvestLevels.get(Arrays.asList(
6569
bl.blockID,md,cls));
6670
if(bhl==null) return itemstack.canHarvestBlock(bl);
@@ -87,6 +91,9 @@ public static boolean isToolEffective(ItemStack ist, Block bl, int md) {
8791
Object[] ta=tc.toArray();
8892
String cls=(String)ta[0];
8993

94+
if (cls.equalsIgnoreCase("paxel"))
95+
return true;
96+
9097
return toolEffectiveness.contains(Arrays.asList(
9198
bl.blockID,md,cls));
9299
}

forge_common/net/minecraft/src/reforged/ReforgedHooks.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public static void touch() {
1212

1313
public static final int majorVersion=1;
1414
public static final int minorVersion=0;
15-
public static final int revisionVersion=0;
15+
public static final int revisionVersion=1;
1616
static {
1717
System.out.printf("Reforged V%d.%d.%d Initialized\n",majorVersion,minorVersion,revisionVersion);
1818
}

0 commit comments

Comments
 (0)