Fix for name format. Closes #1258

This commit is contained in:
drcrazy 2017-09-01 18:40:33 +03:00
parent 207ac79b77
commit 021a6b0077
2 changed files with 17 additions and 1 deletions

View file

@ -77,6 +77,10 @@ public class BlockStorage2 extends BaseBlock {
}
throw new InvalidParameterException("The storage block " + name + " could not be found.");
}
public static ItemStack getStorageBlockByName(String name) {
return getStorageBlockByName(name, 1);
}
@Override
public Item getItemDropped(IBlockState state, Random rand, int fortune) {