From 75660547d9c5abcea1b361a733b42af90313d5f6 Mon Sep 17 00:00:00 2001 From: Jacob Scott Date: Fri, 15 Jul 2011 01:59:30 -0500 Subject: [PATCH] fixed superpickaxe for gravel & lightstone, preprocessors faster than postprocessors, added methods so same-type changes are visble client-side, fixed fixliquid & setblocks block count --- src/main/java/com/sk89q/worldedit/LocalWorld.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/sk89q/worldedit/LocalWorld.java b/src/main/java/com/sk89q/worldedit/LocalWorld.java index cdd8fafee..de50c5857 100644 --- a/src/main/java/com/sk89q/worldedit/LocalWorld.java +++ b/src/main/java/com/sk89q/worldedit/LocalWorld.java @@ -225,10 +225,10 @@ public abstract class LocalWorld { else if (type == 10) { } // Lava else if (type == 11) { } // Lava else if (type == 13) { // Gravel - dropItem(pt, new BaseItemStack(type)); - if (random.nextDouble() >= 0.9) { dropItem(pt, new BaseItemStack(318)); + }else{ + dropItem(pt, new BaseItemStack(type)); } } else if (type == 16) { dropItem(pt, new BaseItemStack(263)); } // Coal ore @@ -239,7 +239,7 @@ public abstract class LocalWorld { } } else if (type == 20) { } // Glass - else if (type == 21) { dropItem(pt, new BaseItemStack(351, 1, (short)4), (random.nextInt(5)+4)); } + else if (type == 21) { dropItem(pt, new BaseItemStack(351, 1, (short)4), (random.nextInt(5)+4)); } // Lapis Lazuli ore else if (type == 26) { dropItem(pt, new BaseItemStack(355)); } // Bed else if (type == 35) { dropItem(pt, new BaseItemStack(35, 1, (short)getBlockData(pt))); } // Cloth else if (type == 43) { // Double step @@ -267,7 +267,7 @@ public abstract class LocalWorld { else if (type == 79) { } // Ice else if (type == 82) { dropItem(pt, new BaseItemStack(337), 4); } // Clay else if (type == 83) { dropItem(pt, new BaseItemStack(338)); } // Reed - else if (type == 89) { dropItem(pt, new BaseItemStack(348)); } // Lightstone + else if (type == 89) { dropItem(pt, new BaseItemStack(348), (random.nextInt(3)+2)); } // Lightstone else if (type == 90) { } // Portal else if (type == 93) { dropItem(pt, new BaseItemStack(356)); } // Repeater else if (type == 94) { dropItem(pt, new BaseItemStack(356)); } // Repeater