mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-19 04:06:43 -04:00
fixed formatting bug in tooltips; added check to fmp cable save to avoid errors when called on client (waila)
This commit is contained in:
parent
9d545e653d
commit
add33b1d91
@ -58,7 +58,10 @@ class CablePart(val original: Option[Node] = None) extends DelegatePart with TCu
|
||||
|
||||
override def save(nbt: NBTTagCompound) {
|
||||
super.save(nbt)
|
||||
nbt.setNewCompoundTag(Settings.namespace + "node", node.save)
|
||||
// Null check for Waila (and other mods that may call this client side).
|
||||
if (node != null) {
|
||||
nbt.setNewCompoundTag(Settings.namespace + "node", node.save)
|
||||
}
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
|
@ -36,6 +36,7 @@ object Tooltip {
|
||||
val c = iterator.next()
|
||||
if (c == '§') {
|
||||
iterator.next()
|
||||
position += 2
|
||||
}
|
||||
else {
|
||||
if (c == ' ') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user