mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-17 11:15:12 -04:00
Fixed setPaletteColor using hardcoded 2 for all tiers.
This commit is contained in:
parent
b96411c40b
commit
1fc9e8f294
@ -151,7 +151,7 @@ class GraphicsCard(val tier: Int) extends prefab.ManagedEnvironment {
|
||||
})
|
||||
}
|
||||
|
||||
@Callback(direct = true, limit = 2, doc = """function(index:number, color:number):number -- Set the palette color at the specified palette index. Returns the previous value.""")
|
||||
@Callback(direct = true, doc = """function(index:number, color:number):number -- Set the palette color at the specified palette index. Returns the previous value.""")
|
||||
def setPaletteColor(context: Context, args: Arguments): Array[AnyRef] = {
|
||||
context.consumeCallBudget(setPaletteColorCosts(tier))
|
||||
val index = args.checkInteger(0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user