mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-02-08 07:41:23 +01:00
Use workaround for glass type finally (might revert effmod later).
This commit is contained in:
parent
a627ffd169
commit
c1195c630a
@ -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) {
|
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..
|
// Workaround until something better is found..
|
||||||
if (efficiency == 1) return 100;
|
if (blockId == Material.LEAVES.getId() || blockProps == glassType){
|
||||||
else return 0; // insta break.
|
if (efficiency == 1) return 100;
|
||||||
|
else return 0; // insta break.
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
long duration;
|
long duration;
|
||||||
|
Loading…
Reference in New Issue
Block a user