Skip to content

Commit 4b6426b

Browse files
author
MrTrollNugNug(Cazsius)
committed
Fixed some warnings
1 parent 1b40f0a commit 4b6426b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/mmd/orespawn/command/AddOreCommand.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ public void execute(MinecraftServer server, ICommandSender sender, String[] args
5151

5252
File file = new File(".", "orespawn" + File.separator + args[0] + ".json");
5353
JsonParser parser = new JsonParser();
54-
IBlockState state = ((ItemBlock) stack.getItem()).getBlock().getStateFromMeta(stack.getItemDamage());
54+
@SuppressWarnings("deprecation")
55+
IBlockState state = ((ItemBlock) stack.getItem()).getBlock().getStateFromMeta(stack.getItemDamage());
5556

5657
if (!file.exists()) {
5758
throw new CommandException("That file doesn't exist" + (args[0].endsWith(".json") ? " (don't add .json)" : ""));

0 commit comments

Comments
 (0)