mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 00:38:35 +01:00
Add some more null checks to Drill's block harvesting.
Should close #175
This commit is contained in:
parent
f96c60f0bb
commit
1418d6fb7f
1 changed files with 10 additions and 5 deletions
|
@ -501,11 +501,16 @@ public class ItemDrill extends ItemEnergy{
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean hasExtraWhitelist(Block block){
|
private boolean hasExtraWhitelist(Block block){
|
||||||
String name = block.getRegistryName().toString();
|
if(block != null){
|
||||||
if(name != null){
|
ResourceLocation location = block.getRegistryName();
|
||||||
for(String list : ConfigStringListValues.DRILL_EXTRA_MINING_WHITELIST.getValue()){
|
if(location != null){
|
||||||
if(list.equals(name)){
|
String name = location.toString();
|
||||||
return true;
|
if(name != null){
|
||||||
|
for(String s : ConfigStringListValues.DRILL_EXTRA_MINING_WHITELIST.getValue()){
|
||||||
|
if(s != null && s.equals(name)){
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue