Merge branch 'master-MC1.7.10' of github.com:MightyPirates/OpenComputers into master-MC1.8

This commit is contained in:
Florian Nücke 2015-04-14 00:35:23 +02:00
commit d9070d6fb3

View File

@ -43,7 +43,7 @@ class DynamicFontRenderer extends TextureFontRenderer with IResourceManagerReloa
textures.clear() textures.clear()
charMap.clear() charMap.clear()
textures += new DynamicFontRenderer.CharTexture(this) textures += new DynamicFontRenderer.CharTexture(this)
activeTexture = textures(0) activeTexture = textures.head
generateChars(basicChars.toCharArray) generateChars(basicChars.toCharArray)
} }
@ -69,9 +69,9 @@ class DynamicFontRenderer extends TextureFontRenderer with IResourceManagerReloa
} }
override protected def drawChar(tx: Float, ty: Float, char: Char) { override protected def drawChar(tx: Float, ty: Float, char: Char) {
val icon = charMap(char) charMap.get(char) match {
if (icon != null && icon.texture == activeTexture) { case Some(icon) if icon.texture == activeTexture => icon.draw(tx, ty)
icon.draw(tx, ty) case _ =>
} }
} }