This makes more sense.

This commit is contained in:
Ellpeck 2016-06-08 23:04:06 +02:00
parent 12de298057
commit e944ef6bbf

View file

@ -140,7 +140,7 @@ public class TileEntityMiner extends TileEntityInventoryBase implements IEnergyR
}
else{
ItemStack stack = new ItemStack(block, 1, meta);
if(stack != null){
if(stack.getItem() != null){
int[] ids = OreDictionary.getOreIDs(stack);
for(int id : ids){
String name = OreDictionary.getOreName(id);