mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-10-06 10:27:26 +02: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
|
// Find and define properties of all blocks
|
||||||
for(int i = 0; i < types.length; i++) {
|
for(int i = 0; i < types.length; i++) {
|
||||||
|
|
||||||
// Everything is considered nonsolid at first
|
// Everything is considered solid at first
|
||||||
types[i] = NONSOLID;
|
types[i] = SOLID;
|
||||||
|
|
||||||
if(Block.byId[i] != null) {
|
if(Block.byId[i] != null) {
|
||||||
if(Block.byId[i].material.isSolid()) {
|
if(Block.byId[i].material.isSolid()) {
|
||||||
@ -58,6 +58,9 @@ public class MovingData {
|
|||||||
// WATER, LAVA
|
// WATER, LAVA
|
||||||
types[i] = LIQUID;
|
types[i] = LIQUID;
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
types[i] = NONSOLID;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user