mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 23:26:45 +01:00
Basic error check for backwards compatibility with dye colors.
This commit is contained in:
parent
660e68b0a3
commit
9b31520684
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user