mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-10 07:45:05 -04:00
Should fix #1589.
This commit is contained in:
parent
fbd57de086
commit
49fbe0eef1
@ -11,7 +11,7 @@ import scala.collection.convert.WrapAsScala._
|
|||||||
|
|
||||||
object ConverterSafariNet extends Converter {
|
object ConverterSafariNet extends Converter {
|
||||||
override def convert(value: scala.Any, output: util.Map[AnyRef, AnyRef]): Unit = value match {
|
override def convert(value: scala.Any, output: util.Map[AnyRef, AnyRef]): Unit = value match {
|
||||||
case stack: ItemStack if stack.getItem.isInstanceOf[ItemSafariNet] =>
|
case stack: ItemStack if stack.getItem.isInstanceOf[ItemSafariNet] && stack.hasTagCompound =>
|
||||||
val nbt = stack.getTagCompound
|
val nbt = stack.getTagCompound
|
||||||
if (nbt.hasKey("id", NBT.TAG_STRING) && !nbt.getBoolean("hide")) {
|
if (nbt.hasKey("id", NBT.TAG_STRING) && !nbt.getBoolean("hide")) {
|
||||||
output += "entity" -> nbt.getString("id")
|
output += "entity" -> nbt.getString("id")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user