More mining restructuring.

This commit is contained in:
gmcferrin
2013-01-08 09:42:37 -05:00
parent 159ec3f04d
commit aee4bcd65e
4 changed files with 13 additions and 8 deletions

View File

@ -38,10 +38,7 @@ public class Mining {
* @param player The player to award XP to
* @param block The block to award XP for
*/
public static void miningXP(Player player, Block block) {
PlayerProfile profile = Users.getProfile(player);
Material type = block.getType();
protected static void miningXP(Player player, PlayerProfile profile, Block block, Material type) {
int xp = 0;
switch (type) {