Change crafting table name to show step count
This commit is contained in:
@@ -29,6 +29,7 @@ module.exports = class CraftingTable extends BaseModel
|
||||
multiplier: { get:@getMultiplier }
|
||||
output: { get:@getOutput }
|
||||
step: { get:@getStep, set:@setStep }
|
||||
stepCount: { get:@getStepCount }
|
||||
toolNames: { get:@getToolNames }
|
||||
}
|
||||
|
||||
@@ -73,6 +74,10 @@ module.exports = class CraftingTable extends BaseModel
|
||||
|
||||
return this
|
||||
|
||||
getStepCount: ->
|
||||
return 0 unless @_steps?
|
||||
return @_steps.length
|
||||
|
||||
getToolNames: ->
|
||||
recipe = @_steps[@_step]?.recipe
|
||||
return '' unless recipe?
|
||||
|
||||
Reference in New Issue
Block a user