mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-13 11:18:23 +01:00
Fixed PlayerInventoryEvent Type.
By: EvilSeph <evilseph@unaligned.org>
This commit is contained in:
parent
2427d3835e
commit
871953413c
2 changed files with 7 additions and 1 deletions
|
@ -264,6 +264,12 @@ public abstract class Event implements Serializable {
|
|||
*/
|
||||
PLAYER_BUCKET_FILL(Category.PLAYER),
|
||||
|
||||
/**
|
||||
* Called when a player interacts with the inventory
|
||||
*
|
||||
* @see org.bukkit.event.player.PlayerInventoryEvent
|
||||
*/
|
||||
PLAYER_INVENTORY(Category.PLAYER),
|
||||
/**
|
||||
* BLOCK EVENTS
|
||||
*/
|
||||
|
|
|
@ -11,7 +11,7 @@ public class PlayerInventoryEvent extends PlayerEvent {
|
|||
protected Inventory inventory;
|
||||
|
||||
public PlayerInventoryEvent(final Player player, final Inventory inventory) {
|
||||
super(Type.PLAYER_INTERACT, player);
|
||||
super(Type.PLAYER_INVENTORY, player);
|
||||
this.inventory = inventory;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue