mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-02-07 15:21:33 +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) {
|
||||
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user