Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CSM] add on_item_use #5544

Merged
merged 1 commit into from
May 6, 2017
Merged

[CSM] add on_item_use #5544

merged 1 commit into from
May 6, 2017

Conversation

red-001
Copy link
Contributor

@red-001 red-001 commented Apr 8, 2017

Part of #5394

lua_getglobal(L, "core");
lua_getfield(L, -1, "registered_on_item_use");

// Push data
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -189,6 +189,46 @@ bool ScriptApiClient::on_punchnode(v3s16 p, MapNode node)
return blocked;
}

bool ScriptApiClient::on_item_use(ItemStack item, PointedThing pointed)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const ItemStack &, const PointedThing &

@nerzhul nerzhul mentioned this pull request Apr 12, 2017
27 tasks
@nerzhul
Copy link
Member

nerzhul commented Apr 27, 2017

@red-001 can you fix this PR please ?

Copy link
Member

@SmallJoker SmallJoker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@red-001 red-001 deleted the csm_on_item_use branch May 6, 2017 19:14
@nerzhul nerzhul moved this from In Progress to Done in Server-sent Client Side Modding May 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

4 participants