mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
Updated FakeBlockBreakEvent to align with recent Bukkit changes.
This commit is contained in:
parent
6887ddd570
commit
b55e9c5c0d
@ -1,12 +1,15 @@
|
||||
package com.gmail.nossr50.events;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import org.bukkit.block.Block;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.block.BlockBreakEvent;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
public class FakeBlockBreakEvent extends BlockBreakEvent {
|
||||
|
||||
public FakeBlockBreakEvent(Block theBlock, Player player) {
|
||||
super(theBlock, player);
|
||||
super(theBlock, player, new ArrayList<ItemStack>(theBlock.getDrops()));
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user