mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-17 19:25:20 -04:00
Merge branch 'master-MC1.7.10' of github.com:MightyPirates/OpenComputers into master-MC1.8
This commit is contained in:
commit
d9070d6fb3
@ -43,7 +43,7 @@ class DynamicFontRenderer extends TextureFontRenderer with IResourceManagerReloa
|
||||
textures.clear()
|
||||
charMap.clear()
|
||||
textures += new DynamicFontRenderer.CharTexture(this)
|
||||
activeTexture = textures(0)
|
||||
activeTexture = textures.head
|
||||
generateChars(basicChars.toCharArray)
|
||||
}
|
||||
|
||||
@ -69,9 +69,9 @@ class DynamicFontRenderer extends TextureFontRenderer with IResourceManagerReloa
|
||||
}
|
||||
|
||||
override protected def drawChar(tx: Float, ty: Float, char: Char) {
|
||||
val icon = charMap(char)
|
||||
if (icon != null && icon.texture == activeTexture) {
|
||||
icon.draw(tx, ty)
|
||||
charMap.get(char) match {
|
||||
case Some(icon) if icon.texture == activeTexture => icon.draw(tx, ty)
|
||||
case _ =>
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user