Skip to content

Commit

Permalink
Minor tweaks and fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gtnardy committed Jan 30, 2024
1 parent 2967f89 commit fc65c54
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/scripting-reference/glossary/enums.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Instead of passing numbers to methods or comparing numbers in Events callbacks,

```lua
-- Using Enums to figure out which StanceMode the Character is
Character.Subscribe("StanceModeChanged", function(character, old_stance, new_stance)
Character.Subscribe("StanceModeChange", function(character, old_stance, new_stance)
if (new_stance == StanceMode.Standing) then
Console.Log("I'm Standing!")
else if (new_stance == StanceMode.Crouching) then
Expand Down
2 changes: 1 addition & 1 deletion src/api
2 changes: 1 addition & 1 deletion src/components/ClassBuilder.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export const TypeToAPIFolder = { StandardLibrary: "StandardLibraries/", Struct:
// API Source URL
export const APISourceURL = ({ type, class_name }) => (
<Admonition type="note" icon="🧑‍💻" title="API Source">
The methods, properties and events descriptions from this page are defined in our <a href={`https://github.com/nanos-world/api/blob/main/${TypeToAPIFolder[type]}${class_name}.json`}>GitHub API Repository</a>!
This page is auto-generated! The Functions, Properties and Events described here are defined in our <a href={`https://github.com/nanos-world/api/blob/main/${TypeToAPIFolder[type]}${class_name}.json`}>GitHub's API Repository</a>! Feel free to commit suggestions and changes to the source .json API files!
</Admonition>
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Instead of passing numbers to methods or comparing numbers in Events callbacks,

```lua
-- Using Enums to figure out which StanceMode the Character is
Character.Subscribe("StanceModeChanged", function(character, old_stance, new_stance)
Character.Subscribe("StanceModeChange", function(character, old_stance, new_stance)
if (new_stance == StanceMode.Standing) then
Console.Log("I'm Standing!")
else if (new_stance == StanceMode.Crouching) then
Expand Down

0 comments on commit fc65c54

Please sign in to comment.