mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-11-04 02:53:43 +01:00 
			
		
		
		
	Latest stuff
This commit is contained in:
		@@ -256,23 +256,23 @@ public class mcBlockListener extends BlockListener {
 | 
				
			|||||||
            int oy = blockTo.getY();
 | 
					            int oy = blockTo.getY();
 | 
				
			||||||
            int oz = blockTo.getZ();
 | 
					            int oz = blockTo.getZ();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if(blockTo.getTypeId() == 9 || blockTo.getTypeId() == 8){
 | 
					            if(blockTo.getTypeId() == 9 || blockTo.getTypeId() == 8)
 | 
				
			||||||
            	return;
 | 
					            	return;
 | 
				
			||||||
            }
 | 
					            
 | 
				
			||||||
 | 
					            if(mcLoadProperties.clay){
 | 
				
			||||||
            for (int cx = -radius; cx <= radius; cx++) {
 | 
						            for (int cx = -radius; cx <= radius; cx++) {
 | 
				
			||||||
                for (int cy = -radius; cy <= radius; cy++) {
 | 
						                for (int cy = -radius; cy <= radius; cy++) {
 | 
				
			||||||
                    for (int cz = -radius; cz <= radius; cz++) {
 | 
						                    for (int cz = -radius; cz <= radius; cz++) {
 | 
				
			||||||
                        Block block = world.getBlockAt(ox + cx, oy + cy, oz + cz);
 | 
						                        Block block = world.getBlockAt(ox + cx, oy + cy, oz + cz);
 | 
				
			||||||
                        //If block is block
 | 
						                        //If block is block
 | 
				
			||||||
                        if (isWater == true &&
 | 
						                        if (isWater == true){
 | 
				
			||||||
                        		block.getTypeId() == 13 && mcLoadProperties.clay) {
 | 
						                        	//Change
 | 
				
			||||||
                        	//Change
 | 
						                        	block.setType(Material.CLAY);
 | 
				
			||||||
                        	block.setTypeId(82);
 | 
						                            return;
 | 
				
			||||||
                            return;
 | 
						                        }
 | 
				
			||||||
                        }
 | 
						                    }
 | 
				
			||||||
                    }
 | 
						                }
 | 
				
			||||||
                }
 | 
						            }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@@ -138,7 +138,7 @@ public class mcHerbalism {
 | 
				
			|||||||
    		if(Math.random() * 1500 <= PP.getHerbalismInt()){
 | 
					    		if(Math.random() * 1500 <= PP.getHerbalismInt()){
 | 
				
			||||||
    			event.setCancelled(true);
 | 
					    			event.setCancelled(true);
 | 
				
			||||||
    			loc.getWorld().dropItemNaturally(loc, is);
 | 
					    			loc.getWorld().dropItemNaturally(loc, is);
 | 
				
			||||||
    			//block.setType(Material.WHEAT); //Change broken block to wheat
 | 
					    			
 | 
				
			||||||
    			block.setData((byte) 0x1); //Change it to first stage
 | 
					    			block.setData((byte) 0x1); //Change it to first stage
 | 
				
			||||||
    			
 | 
					    			
 | 
				
			||||||
    			//Setup the bonuses
 | 
					    			//Setup the bonuses
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user