Action for finishing using item is triggered just before vanilla applies its effects.
This commit is contained in:
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
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user