From 8fd7c35a32a22bfac0c077bda9cf8fac9bc8b505 Mon Sep 17 00:00:00 2001 From: jglrxavpok Date: Mon, 29 Jun 2020 21:11:22 +0200 Subject: [PATCH] Removed useless import --- src/autogenerated/java/net/minestom/server/item/Material.java | 2 +- .../java/net/minestom/codegen/items/ItemEnumGenerator.java | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/autogenerated/java/net/minestom/server/item/Material.java b/src/autogenerated/java/net/minestom/server/item/Material.java index e333561f1..dec1a75a4 100644 --- a/src/autogenerated/java/net/minestom/server/item/Material.java +++ b/src/autogenerated/java/net/minestom/server/item/Material.java @@ -2,8 +2,8 @@ // AUTOGENERATED BY EnumGenerator //============================== package net.minestom.server.item; - import net.minestom.server.instance.block.Block; +import it.unimi.dsi.fastutil.shorts.Short2ObjectOpenHashMap; public enum Material { AIR("minecraft:air", 0, Block.AIR), diff --git a/src/generators/java/net/minestom/codegen/items/ItemEnumGenerator.java b/src/generators/java/net/minestom/codegen/items/ItemEnumGenerator.java index 22a42900c..9dbd7a33f 100644 --- a/src/generators/java/net/minestom/codegen/items/ItemEnumGenerator.java +++ b/src/generators/java/net/minestom/codegen/items/ItemEnumGenerator.java @@ -130,7 +130,6 @@ public class ItemEnumGenerator extends MinestomEnumGenerator { protected void prepare(EnumGenerator generator) { String className = getClassName(); generator.addImport(Block.class.getCanonicalName()); - generator.addImport(Short2ObjectOpenHashMap.class.getCanonicalName()); generator.setParams("String namespaceID", "int maxDefaultStackSize", "Block correspondingBlock"); generator.addMethod("getId", "()", "short", "return (short)ordinal();"); generator.addMethod("getName", "()", "String", "return namespaceID;");