Latest stuff

This commit is contained in:
nossr50 2011-04-14 06:41:39 -07:00
parent eccef7d206
commit 6236e0960e
2 changed files with 17 additions and 17 deletions

View File

@ -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;
}
for (int cx = -radius; cx <= radius; cx++) { if(mcLoadProperties.clay){
for (int cy = -radius; cy <= radius; cy++) { for (int cx = -radius; cx <= radius; cx++) {
for (int cz = -radius; cz <= radius; cz++) { for (int cy = -radius; cy <= radius; cy++) {
Block block = world.getBlockAt(ox + cx, oy + cy, oz + cz); for (int cz = -radius; cz <= radius; cz++) {
//If block is block Block block = world.getBlockAt(ox + cx, oy + cy, oz + cz);
if (isWater == true && //If block is block
block.getTypeId() == 13 && mcLoadProperties.clay) { if (isWater == true){
//Change //Change
block.setTypeId(82); block.setType(Material.CLAY);
return; return;
} }
} }
} }
}
} }
} }
} }

View File

@ -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