added player_picks_up_item and better docs on events.

This commit is contained in:
gnembon committed 2020-09-23 03:26:39 -03:00
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();
}