mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-13 00:37:52 +00:00
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:
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>
|
||||
|
||||
Reference in new issue
Block a user