mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-12 03:24:06 +09:00
working sledgehammer item to take down walls
This commit is contained in:
@@ -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.")
|
||||
|
||||
Reference in New Issue
Block a user