Make AnvilUpdateEvent fire even if the second input is empty, which means it fires even if only changing the item name. (#8905)

This commit is contained in:
Luis authored and GitHub committed 2022-08-09 12:48:46 -07:00
1 parent 7981093591
commit 130953e519
4 files changed
+44 -2

No files matched your search

@@ -14,7 +14,7 @@ import org.jetbrains.annotations.Nullable;
/**
*
* AnvilUpdateEvent is fired when the inputs (either input stack, or the name) to an anvil are changed. <br>
* AnvilUpdateEvent is fired whenever the input stacks (left or right) or the name in an anvil changed. <br>
* It is called from {@link AnvilMenu#createResult()}. <br>
* If the event is canceled, vanilla behavior will not run, and the output will be set to {@link ItemStack#EMPTY}. <br>
* If the event is not canceled, but the output is not empty, it will set the output and not run vanilla behavior. <br>