mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 08:48:34 +01:00
parent
5776ac2fa0
commit
e2c8b335c6
1 changed files with 2 additions and 1 deletions
|
@ -14,6 +14,7 @@ import de.ellpeck.actuallyadditions.mod.config.values.ConfigStringListValues;
|
|||
import de.ellpeck.actuallyadditions.mod.items.ItemDrill;
|
||||
import de.ellpeck.actuallyadditions.mod.network.gui.IButtonReactor;
|
||||
import de.ellpeck.actuallyadditions.mod.util.AssetUtil;
|
||||
import de.ellpeck.actuallyadditions.mod.util.StackUtil;
|
||||
import de.ellpeck.actuallyadditions.mod.util.WorldUtil;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.BlockLiquid;
|
||||
|
@ -137,7 +138,7 @@ public class TileEntityMiner extends TileEntityInventoryBase implements IButtonR
|
|||
}
|
||||
else{
|
||||
ItemStack stack = new ItemStack(block, 1, meta);
|
||||
if(stack.getItem() != null){
|
||||
if(StackUtil.isValid(stack)){
|
||||
int[] ids = OreDictionary.getOreIDs(stack);
|
||||
for(int id : ids){
|
||||
String name = OreDictionary.getOreName(id);
|
||||
|
|
Loading…
Reference in a new issue