Made everything that uses canPassThrough use data values.

This commit is contained in:
TomyLobo
2013-06-23 21:04:23 +02:00
parent b612de3429
commit 921c354db7
3 changed files with 15 additions and 12 deletions

View File

@ -145,7 +145,7 @@ public class TargetBlock {
* @return Block
*/
public BlockWorldVector getSolidTargetBlock() {
while (getNextBlock() != null && BlockType.canPassThrough(world.getBlockType(getCurrentBlock()))) ;
while (getNextBlock() != null && BlockType.canPassThrough(world.getBlock(getCurrentBlock()))) ;
return getCurrentBlock();
}