mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 07:06:45 +01:00
Add missing Herbalism entries to config
This commit is contained in:
parent
53534e0f1d
commit
28c7fdd4e2
@ -8,9 +8,10 @@ Key:
|
|||||||
- Removal
|
- Removal
|
||||||
|
|
||||||
Version 2.1.30
|
Version 2.1.30
|
||||||
Fixed yet another bug involving double drops
|
Fixed double drops behaving oddly
|
||||||
DoubleDrop config tables now must contain all things that can possibly be doubled, such as the Ore block, the ore itself, etc.
|
DoubleDrop config tables now must contain all things that can possibly be doubled, such as the Ore block, the ore itself, etc.
|
||||||
Added the following items to the DoubleDrop tables for Mining: Coal, Diamond, Emerald, Glowstone_Dust, Iron_Ingot, Lapis_Lazuli, Nether_Quartz, Redstone, Cobblestone
|
Added the following items to the DoubleDrop tables for Mining: Coal, Diamond, Emerald, Glowstone_Dust, Iron_Ingot, Lapis_Lazuli, Nether_Quartz, Redstone, Cobblestone
|
||||||
|
Added the following items to the DoubleDrop tables for Herbalism: Beetroot, Carrot, Cocoa_Beans, Melon_Slice, Potatoe
|
||||||
|
|
||||||
NOTE: I'm gonna have to blame Bukkit on this one, several API methods I used are actually unfinished and kind of janky. So I hacked something together to make them work.
|
NOTE: I'm gonna have to blame Bukkit on this one, several API methods I used are actually unfinished and kind of janky. So I hacked something together to make them work.
|
||||||
|
|
||||||
|
@ -71,11 +71,15 @@ public class BlockListener implements Listener {
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
if(event.getBlock().getState().getMetadata(mcMMO.doubleDrops).size() > 0)
|
if(event.getBlock().getState().getMetadata(mcMMO.doubleDrops).size() > 0)
|
||||||
|
{
|
||||||
event.getBlock().getState().getWorld().dropItemNaturally(event.getBlockState().getLocation(), is);
|
event.getBlock().getState().getWorld().dropItemNaturally(event.getBlockState().getLocation(), is);
|
||||||
|
event.getBlock().getState().removeMetadata(mcMMO.doubleDrops, plugin);
|
||||||
|
}
|
||||||
else if(event.getBlock().getState().getMetadata(mcMMO.tripleDrops).size() > 0)
|
else if(event.getBlock().getState().getMetadata(mcMMO.tripleDrops).size() > 0)
|
||||||
{
|
{
|
||||||
event.getBlock().getState().getWorld().dropItemNaturally(event.getBlockState().getLocation(), is);
|
event.getBlock().getState().getWorld().dropItemNaturally(event.getBlockState().getLocation(), is);
|
||||||
event.getBlock().getState().getWorld().dropItemNaturally(event.getBlockState().getLocation(), is);
|
event.getBlock().getState().getWorld().dropItemNaturally(event.getBlockState().getLocation(), is);
|
||||||
|
event.getBlock().getState().removeMetadata(mcMMO.tripleDrops, plugin);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -429,14 +429,19 @@ Skills:
|
|||||||
Double_Drops:
|
Double_Drops:
|
||||||
Herbalism:
|
Herbalism:
|
||||||
Beetroots: true
|
Beetroots: true
|
||||||
|
Beetroot: true
|
||||||
Brown_Mushroom: true
|
Brown_Mushroom: true
|
||||||
Cactus: true
|
Cactus: true
|
||||||
Carrots: true
|
Carrots: true
|
||||||
|
Carrot: true
|
||||||
Cocoa: true
|
Cocoa: true
|
||||||
|
Cocoa_Beans: true
|
||||||
Wheat: true
|
Wheat: true
|
||||||
Melon: true
|
Melon: true
|
||||||
|
Melon_Slice: true
|
||||||
Nether_Wart: true
|
Nether_Wart: true
|
||||||
Potatoes: true
|
Potatoes: true
|
||||||
|
Potatoe: true
|
||||||
Pumpkin: true
|
Pumpkin: true
|
||||||
Red_Mushroom: true
|
Red_Mushroom: true
|
||||||
Sugar_Cane: true
|
Sugar_Cane: true
|
||||||
|
Loading…
Reference in New Issue
Block a user