fixed LB/RB/BR bug (actor jitters because of false positive collision?) with a hack

This commit is contained in:
minjaesong
2017-06-01 23:07:07 +09:00
parent da2452c84e
commit b4042f0060
4 changed files with 92 additions and 38 deletions

View File

@@ -68,6 +68,19 @@ object BlockCodex {
}
}
fun getOrNull(rawIndex: Int?): BlockProp? {
if (rawIndex == null || rawIndex == Block.NULL) {
return null
}
try {
return blockProps[rawIndex]
}
catch (e: NullPointerException) {
throw NullPointerException("Blockprop with raw id $rawIndex does not exist.")
}
}
private fun setProp(prop: BlockProp, record: CSVRecord) {
prop.nameKey = record.get("name")