mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-14 09:46:53 -04:00
Increase max label length a little.
This commit is contained in:
parent
47b6b27884
commit
e0645f061c
@ -80,7 +80,7 @@ class Printer extends traits.Environment with traits.Inventory with traits.Rotat
|
|||||||
|
|
||||||
@Callback(doc = """function(value:string) -- Set a label for the block being printed.""")
|
@Callback(doc = """function(value:string) -- Set a label for the block being printed.""")
|
||||||
def setLabel(context: Context, args: Arguments): Array[Object] = {
|
def setLabel(context: Context, args: Arguments): Array[Object] = {
|
||||||
data.label = Option(args.optString(0, null)).map(_.take(16))
|
data.label = Option(args.optString(0, null)).map(_.take(24))
|
||||||
if (data.label.fold(false)(_.isEmpty)) data.label = None
|
if (data.label.fold(false)(_.isEmpty)) data.label = None
|
||||||
isActive = false // Needs committing.
|
isActive = false // Needs committing.
|
||||||
null
|
null
|
||||||
|
Loading…
x
Reference in New Issue
Block a user