mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-03-02 10:31:25 +01:00
Consider all unknown blocks as "Solid" instead of "Nonsolid"
This commit is contained in:
parent
cd99a78718
commit
b8e3aeabd4
@ -46,8 +46,8 @@ public class MovingData {
|
||||
// Find and define properties of all blocks
|
||||
for(int i = 0; i < types.length; i++) {
|
||||
|
||||
// Everything is considered nonsolid at first
|
||||
types[i] = NONSOLID;
|
||||
// Everything is considered solid at first
|
||||
types[i] = SOLID;
|
||||
|
||||
if(Block.byId[i] != null) {
|
||||
if(Block.byId[i].material.isSolid()) {
|
||||
@ -58,6 +58,9 @@ public class MovingData {
|
||||
// WATER, LAVA
|
||||
types[i] = LIQUID;
|
||||
}
|
||||
else {
|
||||
types[i] = NONSOLID;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user