mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-24 00:26:16 +02:00
fix do consume being inverted for book edit
This commit is contained in:
parent
91346209dd
commit
23ff1eb5d3
1 changed files with 2 additions and 2 deletions
|
|
@ -330,11 +330,11 @@ class AnvilResultListener : Listener {
|
||||||
// Remove pages to book
|
// Remove pages to book
|
||||||
val clearedBook: ItemStack?
|
val clearedBook: ItemStack?
|
||||||
if (LoreEditType.APPEND_BOOK.doConsume) {
|
if (LoreEditType.APPEND_BOOK.doConsume) {
|
||||||
|
clearedBook = null
|
||||||
|
} else {
|
||||||
clearedBook = rightItem.clone()
|
clearedBook = rightItem.clone()
|
||||||
bookMeta.pages = Collections.emptyList()
|
bookMeta.pages = Collections.emptyList()
|
||||||
clearedBook.itemMeta = bookMeta
|
clearedBook.itemMeta = bookMeta
|
||||||
} else {
|
|
||||||
clearedBook = null
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return extractAnvilResult(
|
return extractAnvilResult(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue