Use workaround for glass type finally (might revert effmod later).

This commit is contained in:
asofold 2012-09-12 20:00:53 +02:00
parent a627ffd169
commit c1195c630a

View File

@ -530,10 +530,12 @@ public class BlockUtils {
public static long getBreakingDuration(final int blockId, final BlockProps blockProps, final ToolProps toolProps, final boolean onGround, final boolean inWater, boolean aquaAffinity, int efficiency) {
if (efficiency > 0 && blockId == Material.LEAVES.getId()){
if (efficiency > 0){
// Workaround until something better is found..
if (efficiency == 1) return 100;
else return 0; // insta break.
if (blockId == Material.LEAVES.getId() || blockProps == glassType){
if (efficiency == 1) return 100;
else return 0; // insta break.
}
}
long duration;