added player_picks_up_item and better docs on events.
This commit is contained in:
1 parent
e8b2060fb3
commit
9ca7892859
10 files changed
+415
-113
No files matched your search
@@ -50,8 +50,7 @@ public abstract class ServerPlayerEntity_scarpetEventMixin extends PlayerEntity
|
||||
if (PLAYER_FINISHED_USING_ITEM.isNeeded())
|
||||
{
|
||||
Hand hand = getActiveHand();
|
||||
ItemStack stack = getActiveItem().copy();
|
||||
PLAYER_FINISHED_USING_ITEM.onItemAction((ServerPlayerEntity) (Object)this, hand, stack);
|
||||
PLAYER_FINISHED_USING_ITEM.onItemAction((ServerPlayerEntity) (Object)this, hand, getActiveItem());
|
||||
// do vanilla
|
||||
super.consumeItem();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user