mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-11-04 02:53:43 +01:00 
			
		
		
		
	Fix my fix for the BlockBreak event changes (reverted).
This commit is contained in:
		@@ -1,15 +1,19 @@
 | 
				
			|||||||
package com.gmail.nossr50.events.fake;
 | 
					package com.gmail.nossr50.events.fake;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import java.util.ArrayList;
 | 
					//import java.util.ArrayList;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import org.bukkit.block.Block;
 | 
					import org.bukkit.block.Block;
 | 
				
			||||||
import org.bukkit.entity.Player;
 | 
					import org.bukkit.entity.Player;
 | 
				
			||||||
import org.bukkit.event.block.BlockBreakEvent;
 | 
					import org.bukkit.event.block.BlockBreakEvent;
 | 
				
			||||||
import org.bukkit.inventory.ItemStack;
 | 
					//import org.bukkit.inventory.ItemStack;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
public class FakeBlockBreakEvent extends BlockBreakEvent {
 | 
					public class FakeBlockBreakEvent extends BlockBreakEvent {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	public FakeBlockBreakEvent(Block theBlock, Player player) {
 | 
						public FakeBlockBreakEvent(Block theBlock, Player player) {
 | 
				
			||||||
		super(theBlock, player, new ArrayList<ItemStack>(theBlock.getDrops()));
 | 
							super(theBlock, player);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					//	   public FakeBlockBreakEvent(Block theBlock, Player player) {
 | 
				
			||||||
 | 
					//	        super(theBlock, player, new ArrayList<ItemStack>(theBlock.getDrops()));
 | 
				
			||||||
 | 
					//	    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user