Action for finishing using item is triggered just before vanilla applies its effects.

This commit is contained in:
gnembon committed 2020-07-15 00:40:54 -03:00
1 parent f397a59579
commit a345788358
1 file changed
+1 -1
@@ -48,9 +48,9 @@ public abstract class ServerPlayerEntity_scarpetEventMixin extends PlayerEntity
{ {
Hand hand = getActiveHand(); Hand hand = getActiveHand();
ItemStack stack = getActiveItem().copy(); ItemStack stack = getActiveItem().copy();
PLAYER_FINISHED_USING_ITEM.onItemAction((ServerPlayerEntity) (Object)this, hand, stack);
// do vanilla // do vanilla
super.consumeItem(); super.consumeItem();
PLAYER_FINISHED_USING_ITEM.onItemAction((ServerPlayerEntity) (Object)this, hand, stack);
} }
else else
{ {