mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 07:06:45 +01:00
Added default cases to switch/case statements
This commit is contained in:
parent
c4766ad3fb
commit
f4e7e6c74a
@ -7,6 +7,12 @@ Key:
|
|||||||
! Change
|
! Change
|
||||||
- Removal
|
- Removal
|
||||||
|
|
||||||
|
Version 1.3.13
|
||||||
|
+ Added Craftbukkit 1.4.6 compatibility
|
||||||
|
+ Added default cases to several switch/case statements
|
||||||
|
! GJ stopped being a lazy slacker and got stuff done
|
||||||
|
- Removed dead code relating to null profiles
|
||||||
|
|
||||||
Version 1.3.12
|
Version 1.3.12
|
||||||
+ Added Craftbukkit 1.4.5 compatibility
|
+ Added Craftbukkit 1.4.5 compatibility
|
||||||
+ Added new items from Minecraft 1.4 to Herbalism (potatoes & carrots)
|
+ Added new items from Minecraft 1.4 to Herbalism (potatoes & carrots)
|
||||||
|
@ -79,6 +79,8 @@ public class GreenThumbTimer implements Runnable {
|
|||||||
this.block.setData((byte) ((this.block.getData() ^ ((byte) 0xc)) | ((byte) 4)));
|
this.block.setData((byte) ((this.block.getData() ^ ((byte) 0xc)) | ((byte) 4)));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -422,6 +422,8 @@ public class Herbalism {
|
|||||||
case NETHER_WARTS:
|
case NETHER_WARTS:
|
||||||
hasSeeds = inventory.contains(Material.NETHER_STALK);
|
hasSeeds = inventory.contains(Material.NETHER_STALK);
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
int randomChance = 1500;
|
int randomChance = 1500;
|
||||||
@ -459,6 +461,8 @@ public class Herbalism {
|
|||||||
Misc.randomDropItems(location, new ItemStack(Material.NETHER_STALK), 50, 2);
|
Misc.randomDropItems(location, new ItemStack(Material.NETHER_STALK), 50, 2);
|
||||||
inventory.removeItem(new ItemStack(Material.NETHER_STALK));
|
inventory.removeItem(new ItemStack(Material.NETHER_STALK));
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin, new GreenThumbTimer(block, profile, type), 1);
|
plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin, new GreenThumbTimer(block, profile, type), 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user