X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=core%2Fsrc%2Fru%2Fdeadsoftware%2Fcavedroid%2Fgame%2Factions%2Fuseitem%2FPlaceBlockItemToForegroundAction.kt;h=978eb00aaf421f7c41f00338a8a2c804e15f99b5;hb=6a71a9abc5bc34547c0e4bea7ab19a6bee628a3c;hp=473250e1fd8046508c19043c7c3a3c7a6f79c4d6;hpb=47099181db7f7d785c9c471cbaca474ebcb67d95;p=cavedroid.git diff --git a/core/src/ru/deadsoftware/cavedroid/game/actions/useitem/PlaceBlockItemToForegroundAction.kt b/core/src/ru/deadsoftware/cavedroid/game/actions/useitem/PlaceBlockItemToForegroundAction.kt index 473250e..978eb00 100644 --- a/core/src/ru/deadsoftware/cavedroid/game/actions/useitem/PlaceBlockItemToForegroundAction.kt +++ b/core/src/ru/deadsoftware/cavedroid/game/actions/useitem/PlaceBlockItemToForegroundAction.kt @@ -13,7 +13,7 @@ class PlaceBlockItemToForegroundAction @Inject constructor( override fun perform(item: Item, x: Int, y: Int) { val block = item.toBlock() requireNotNull(block) { "error: trying to place non block item" } - gameWorld.placeToForeground(x, y, block.id) + gameWorld.placeToForeground(x, y, block.params.id) } companion object {