Updated FakeBlockBreakEvent to align with recent Bukkit changes.

This commit is contained in:
GJ 2012-03-21 21:06:28 -04:00
parent 6887ddd570
commit b55e9c5c0d

View File

@ -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()));
}
}