mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-19 12:17:17 -04:00
compat fix when other mods are NOT installed (#156)
This commit is contained in:
parent
69612aa09f
commit
e74efbafab
@ -403,8 +403,10 @@ object ModOpenComputers extends ModProxy {
|
||||
}
|
||||
|
||||
private def blacklistHost(host: Class[_], itemNames: String*) {
|
||||
for (itemName <- itemNames) {
|
||||
api.IMC.blacklistHost(itemName, host, api.Items.get(itemName).createItemStack(1))
|
||||
for (itemName <- itemNames) api.Items.get(itemName) match {
|
||||
case null => null
|
||||
case itemInfo: ItemInfo => api.IMC.blacklistHost(itemName, host, itemInfo.createItemStack(1))
|
||||
case _ => null
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user