Skip to content

Commit

Permalink
fix variable declare
Browse files Browse the repository at this point in the history
  • Loading branch information
friendlyhj committed Apr 30, 2022
1 parent 3345070 commit 4b7628b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions advanced/arrays.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ print(array.length); // array 的元素个数为 4,输出 4
你用过`recipes.addShaped()`吗?它的参数里面就有一个多维数组。准确的来说,是一个二维数组。

```csharp
var <minecraft:gold_ingot> as IItemStack = gold;
var <minecraft:apple> as IItemStack = apple;
var gold as IItemStack = <minecraft:gold_ingot>;
var apple as IItemStack = <minecraft:apple>;

recipes.addShaped("golden_apple", <minecraft:golden_apple>,
[[gold,gold,gold],
Expand Down

0 comments on commit 4b7628b

Please sign in to comment.