aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/common/tools
diff options
context:
space:
mode:
authorghostflyby <ghostflyby@outlook.com>2023-11-08 22:17:00 +0800
committerGitHub <noreply@github.com>2023-11-08 22:17:00 +0800
commit3444f528c31ed2dd0f6b18a529ad4a2c14897188 (patch)
treeaec387815aa3d7a54c1860eb287229a4926c1865 /src/main/java/gregtech/common/tools
parent86c14f89da55b39ef7a9c850e9a1f303c5274cf4 (diff)
downloadGT5-Unofficial-3444f528c31ed2dd0f6b18a529ad4a2c14897188.tar.gz
GT5-Unofficial-3444f528c31ed2dd0f6b18a529ad4a2c14897188.tar.bz2
GT5-Unofficial-3444f528c31ed2dd0f6b18a529ad4a2c14897188.zip
Migrate to non-Object version Utility methods (#2359)
A few calls restricted by other methods and interfaces are left untouched.
Diffstat (limited to 'src/main/java/gregtech/common/tools')
-rw-r--r--src/main/java/gregtech/common/tools/GT_Tool_HardHammer.java2
-rw-r--r--src/main/java/gregtech/common/tools/GT_Tool_JackHammer.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/gregtech/common/tools/GT_Tool_HardHammer.java b/src/main/java/gregtech/common/tools/GT_Tool_HardHammer.java
index becca365e6..ab9cfde6af 100644
--- a/src/main/java/gregtech/common/tools/GT_Tool_HardHammer.java
+++ b/src/main/java/gregtech/common/tools/GT_Tool_HardHammer.java
@@ -137,7 +137,7 @@ public class GT_Tool_HardHammer extends GT_Tool {
if ((tRecipe == null) || (aBlock.hasTileEntity(aMetaData))) {
for (ItemStack tDrop : aDrops) {
tRecipe = GT_Recipe.GT_Recipe_Map.sHammerRecipes
- .findRecipe(null, true, MAX_IC2, null, GT_Utility.copyAmount(1L, tDrop));
+ .findRecipe(null, true, MAX_IC2, null, GT_Utility.copyAmount(1, tDrop));
if (tRecipe != null) {
ItemStack tHammeringOutput = tRecipe.getOutput(0);
if (tHammeringOutput != null) {
diff --git a/src/main/java/gregtech/common/tools/GT_Tool_JackHammer.java b/src/main/java/gregtech/common/tools/GT_Tool_JackHammer.java
index 4f2c1a367b..7fc4956cbb 100644
--- a/src/main/java/gregtech/common/tools/GT_Tool_JackHammer.java
+++ b/src/main/java/gregtech/common/tools/GT_Tool_JackHammer.java
@@ -82,7 +82,7 @@ public class GT_Tool_JackHammer extends GT_Tool_Drill_LV {
if ((tRecipe == null) || (aBlock.hasTileEntity(aMetaData))) {
for (ItemStack tDrop : aDrops) {
tRecipe = GT_Recipe.GT_Recipe_Map.sHammerRecipes
- .findRecipe(null, true, 2147483647L, null, GT_Utility.copyAmount(1L, tDrop));
+ .findRecipe(null, true, 2147483647L, null, GT_Utility.copyAmount(1, tDrop));
if (tRecipe != null) {
ItemStack tHammeringOutput = tRecipe.getOutput(0);
if (tHammeringOutput != null) {