Skript/Server Version
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
Skript/Server Version
Bug Description
The open book effect is hardcoded for
Material.WRITTEN_BOOKas seen here:Skript/src/main/java/ch/njol/skript/effects/EffOpenBook.java
Line 53 in fa0e5e1
But the paper method internally checks if the ItemStack has a
WRITTEN_BOOK_CONTENTDataComponent.Expected Behavior
Should be able to open any item that has
WRITTEN_BOOK_CONTENTDataComponent.Steps to Reproduce
n/a (looking at source)
Errors or Screenshots
No response
Other
No response
Agreement