Skip to content

Commit

Permalink
refactor: remove unused null safe
Browse files Browse the repository at this point in the history
  • Loading branch information
jimchen5209 committed Aug 17, 2024
1 parent b261f5b commit 39fe72f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ class CeramicPlate : SmeltingRecipe(
0.1F,
200
) {
override fun matches(singleStackRecipeInput: SingleStackRecipeInput?, world: World?): Boolean {
val input = singleStackRecipeInput?.getStackInSlot(0) ?: return false
override fun matches(singleStackRecipeInput: SingleStackRecipeInput, world: World): Boolean {
val input = singleStackRecipeInput.getStackInSlot(0) ?: return false
return CustomItemHelper.getItem(input) == Material.RAW_BASE_PLATE
}
}
2 changes: 1 addition & 1 deletion src/main/kotlin/one/oktw/galaxy/recipe/tools/Crowbar.kt
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ class Crowbar : ShapedRecipe(
),
Tool.CROWBAR.createItemStack()
) {
override fun craft(craftingRecipeInput: CraftingRecipeInput?, wrapperLookup: RegistryWrapper.WrapperLookup?) = Tool.CROWBAR.createItemStack()
override fun craft(craftingRecipeInput: CraftingRecipeInput, wrapperLookup: RegistryWrapper.WrapperLookup) = Tool.CROWBAR.createItemStack()
}
2 changes: 1 addition & 1 deletion src/main/kotlin/one/oktw/galaxy/recipe/tools/Wrench.kt
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ class Wrench : ShapedRecipe(
),
Tool.WRENCH.createItemStack()
) {
override fun craft(craftingRecipeInput: CraftingRecipeInput?, wrapperLookup: RegistryWrapper.WrapperLookup?) = Tool.WRENCH.createItemStack()
override fun craft(craftingRecipeInput: CraftingRecipeInput, wrapperLookup: RegistryWrapper.WrapperLookup) = Tool.WRENCH.createItemStack()
}

0 comments on commit 39fe72f

Please sign in to comment.