Skip to content

OpenBook effect hardcoded for WrittenBook #8556

Description

@ShaneBeee

Skript/Server Version

n/a (looking at source)

Bug Description

The open book effect is hardcoded for Material.WRITTEN_BOOK as seen here:

if (itemStack != null && itemStack.getType() == Material.WRITTEN_BOOK) {

But the paper method internally checks if the ItemStack has a WRITTEN_BOOK_CONTENT DataComponent.

Expected Behavior

Should be able to open any item that has WRITTEN_BOOK_CONTENT DataComponent.

Steps to Reproduce

n/a (looking at source)

Errors or Screenshots

No response

Other

No response

Agreement

  • I have read the guidelines above and affirm I am following them with this report.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugAn issue that needs to be fixed. Alternatively, a PR fixing an issue.priority: lowIssues that are not harmful to the experience but are related to useful changes or additions.

Type

No type

Fields

Priority

None yet

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions