mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Use itemstack in LivingEntityUseItemEvent.Finish before it was used (#5015)
This commit is contained in:
1 parent
603f4bd7a3
commit
cfebf27393
2 files changed
+7
-4
No files matched your search
@@ -113,6 +113,8 @@ public class LivingEntityUseItemEvent extends LivingEvent
|
||||
* Fired after an item has fully finished being used.
|
||||
* The item has been notified that it was used, and the item/result stacks reflect after that state.
|
||||
* This means that when this is fired for a Potion, the potion effect has already been applied.
|
||||
*
|
||||
* {@link LivingEntityUseItemEvent#item} is a copy of the item BEFORE it was used.
|
||||
*
|
||||
* If you wish to cancel those effects, you should cancel one of the above events.
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user