Skip to content

Commit

Permalink
Fixed setPaletteColor using hardcoded 2 for all tiers.
Browse files Browse the repository at this point in the history
  • Loading branch information
fnuecke committed Dec 23, 2015
1 parent b96411c commit 1fc9e8f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1fc9e8f

Please sign in to comment.