mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-13 17:28:52 -04:00
add null check to GregTech data stick NBT, closes #3336
This commit is contained in:
parent
21477efb77
commit
a821ae02a8
@ -14,7 +14,7 @@ class ConverterDataStick extends Converter {
|
|||||||
override def convert(value: Any, output: util.Map[AnyRef, AnyRef]): Unit = if (value.isInstanceOf[ItemStack]) {
|
override def convert(value: Any, output: util.Map[AnyRef, AnyRef]): Unit = if (value.isInstanceOf[ItemStack]) {
|
||||||
val stack = value.asInstanceOf[ItemStack]
|
val stack = value.asInstanceOf[ItemStack]
|
||||||
val nbt = stack.stackTagCompound
|
val nbt = stack.stackTagCompound
|
||||||
if (nbt.hasKey("prospection_tier"))
|
if (nbt != null && nbt.hasKey("prospection_tier"))
|
||||||
nbt.getString("title") match {
|
nbt.getString("title") match {
|
||||||
case "Raw Prospection Data" => getRawProspectionData(output, nbt)
|
case "Raw Prospection Data" => getRawProspectionData(output, nbt)
|
||||||
case "Analyzed Prospection Data" => {
|
case "Analyzed Prospection Data" => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user