working sledgehammer item to take down walls

This commit is contained in:
minjaesong
2023-09-05 22:47:40 +09:00
parent 274be20e25
commit 70b9cebbd0
9 changed files with 212 additions and 11 deletions

View File

@@ -146,7 +146,10 @@ class BlockCodex {
}
try {
return blockProps[blockID]!!
return if (blockID.startsWith("wall@"))
blockProps[blockID.substring(5)]!!
else
blockProps[blockID]!!
}
catch (e: NullPointerException) {
throw NullPointerException("Blockprop with id $blockID does not exist.")