1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2025-04-14 07:36:24 +02:00

Merge pull request from Glitchfinder/master

Minor updates.
This commit is contained in:
Glitchfinder 2013-01-08 14:50:39 -08:00
commit e41ab3ac18
2 changed files with 12 additions and 1 deletions
.travis.yml
src/main/java/com/gmail/nossr50/skills/mining

6
.travis.yml Executable file

@ -0,0 +1,6 @@
language: java
jdk:
- oraclejdk7
- openjdk7
- openjdk6
script: "mvn clean install"

@ -246,7 +246,12 @@ public class Mining {
case LAPIS_ORE: case LAPIS_ORE:
if (config.getLapisDoubleDropsEnabled()) { if (config.getLapisDoubleDropsEnabled()) {
item = (new MaterialData(Material.INK_SACK, DyeColor.BLUE.getDyeData())).toItemStack(1); try {
item = (new MaterialData(Material.INK_SACK, DyeColor.BLUE.getDyeData())).toItemStack(1);
}
catch(Exception e) {
item = (new MaterialData(Material.INK_SACK, (byte) 4)).toItemStack(1);
}
Misc.dropItems(location, item, 4); Misc.dropItems(location, item, 4);
Misc.randomDropItems(location, item, 50, 4); Misc.randomDropItems(location, item, 50, 4);