mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-11-04 11:03:43 +01:00 
			
		
		
		
	Update src/main/java/com/gmail/nossr50/skills/gathering/Herbalism.java
This commit is contained in:
		@@ -192,6 +192,13 @@ public class Herbalism {
 | 
				
			|||||||
            }
 | 
					            }
 | 
				
			||||||
            break;
 | 
					            break;
 | 
				
			||||||
            
 | 
					            
 | 
				
			||||||
 | 
					        case COCOA:
 | 
				
			||||||
 | 
					            if (data == (byte) 0x2) {
 | 
				
			||||||
 | 
					                mat = Material.COCOA;
 | 
				
			||||||
 | 
					                xp = Config.getInstance().getHerbalismXPCocoa();
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					            break;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        default:
 | 
					        default:
 | 
				
			||||||
            if (Config.getInstance().getBlockModsEnabled() && CustomBlocksConfig.getInstance().customHerbalismBlocks.contains(new ItemStack(block.getTypeId(), 1, (short) 0, block.getData()))) {
 | 
					            if (Config.getInstance().getBlockModsEnabled() && CustomBlocksConfig.getInstance().customHerbalismBlocks.contains(new ItemStack(block.getTypeId(), 1, (short) 0, block.getData()))) {
 | 
				
			||||||
                customPlant = true;
 | 
					                customPlant = true;
 | 
				
			||||||
@@ -286,6 +293,12 @@ public class Herbalism {
 | 
				
			|||||||
                    }
 | 
					                    }
 | 
				
			||||||
                    break;
 | 
					                    break;
 | 
				
			||||||
                    
 | 
					                    
 | 
				
			||||||
 | 
					                case COCOA:
 | 
				
			||||||
 | 
					                    if (configInstance.getCocoaDoubleDropsEnabled()) {
 | 
				
			||||||
 | 
					                        Misc.dropItems(location, is);
 | 
				
			||||||
 | 
					                    }
 | 
				
			||||||
 | 
					                    break;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                default:
 | 
					                default:
 | 
				
			||||||
                    if (customPlant) {
 | 
					                    if (customPlant) {
 | 
				
			||||||
                        CustomBlock customBlock = ModChecks.getCustomBlock(block);
 | 
					                        CustomBlock customBlock = ModChecks.getCustomBlock(block);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user