|
18 | 18 | import gregtech.tools.enchants.EnchantmentHardHammer; |
19 | 19 |
|
20 | 20 | import net.minecraft.advancements.CriteriaTriggers; |
21 | | -import net.minecraft.block.*; |
| 21 | +import net.minecraft.block.Block; |
| 22 | +import net.minecraft.block.BlockCommandBlock; |
| 23 | +import net.minecraft.block.BlockLiquid; |
| 24 | +import net.minecraft.block.BlockPane; |
| 25 | +import net.minecraft.block.BlockRailBase; |
| 26 | +import net.minecraft.block.BlockStructure; |
| 27 | +import net.minecraft.block.BlockWeb; |
22 | 28 | import net.minecraft.block.state.IBlockState; |
23 | 29 | import net.minecraft.enchantment.EnchantmentDurability; |
24 | 30 | import net.minecraft.enchantment.EnchantmentHelper; |
|
57 | 63 | import java.lang.invoke.MethodHandle; |
58 | 64 | import java.lang.invoke.MethodHandles; |
59 | 65 | import java.lang.reflect.Method; |
60 | | -import java.util.*; |
| 66 | +import java.util.Collections; |
| 67 | +import java.util.Iterator; |
| 68 | +import java.util.List; |
| 69 | +import java.util.Random; |
| 70 | +import java.util.Set; |
61 | 71 | import java.util.function.Supplier; |
62 | 72 |
|
63 | 73 | import static gregtech.api.GTValues.LV; |
@@ -196,7 +206,7 @@ public static ItemStack getAndSetToolData(IGTTool tool, Material material, int m |
196 | 206 | ItemStack stack = tool.getRaw(); |
197 | 207 | GTUtility.getOrCreateNbtCompound(stack).setInteger(HIDE_FLAGS, 2); |
198 | 208 | NBTTagCompound toolTag = getToolTag(stack); |
199 | | - toolTag.setString(MATERIAL_KEY, material.toString()); |
| 209 | + toolTag.setString(MATERIAL_KEY, material.getRegistryName()); |
200 | 210 | toolTag.setInteger(MAX_DURABILITY_KEY, maxDurability); |
201 | 211 | toolTag.setInteger(HARVEST_LEVEL_KEY, harvestLevel); |
202 | 212 | toolTag.setFloat(TOOL_SPEED_KEY, toolSpeed); |
|
0 commit comments