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

set cow plugin and flour bin plugin to use itemonobject #106

Merged
merged 3 commits into from
Mar 1, 2020

Conversation

Promises
Copy link
Collaborator

@Promises Promises commented Mar 1, 2020

needs checking by the almighty @TheBlackParade



export const action: objectAction = (details) => {
const {player, option, objectDefinition, object} = details;
export const action: objectAction | itemOnObjectAction = (details) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Change this to just : itemOnObjectAction or : objectAction. A single action can not have two types, you need to define two actions if they're of a different type.



export const action: objectAction = (details) => {
export const action: objectAction | itemOnObjectAction = (details) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Change this to just : itemOnObjectAction or : objectAction. A single action can not have two types, you need to define two actions if they're of a different type.

@TheBlackParade TheBlackParade merged commit 7538e62 into runejs:master Mar 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants