mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-02-14 18:52:04 +01:00
Prepare to use Material.hasGravity (...).
This commit is contained in:
parent
a4556667fd
commit
9bf09ff52d
@ -160,13 +160,8 @@ public class MCAccessCBDev implements MCAccess{
|
||||
|
||||
@Override
|
||||
public boolean hasGravity(final Material mat) {
|
||||
switch(mat){
|
||||
case SAND:
|
||||
case GRAVEL:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
// TODO: Test/check.
|
||||
return mat.hasGravity();
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user