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