Skip to content

Commit

Permalink
1.3.1 patch
Browse files Browse the repository at this point in the history
  • Loading branch information
johnpgr committed Nov 5, 2024
1 parent ff2980d commit a1a357f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions changelogs/1.3.1-1.20.5.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### Patch [1.3.1]

- Fixed a crash when opening the CraftingTableII screen
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ yarn_mappings=1.20.5+build.1
loader_version=0.15.6

# Mod Properties
mod_version=1.3-1.20.5
mod_version=1.3.1-1.20.5
maven_group=net.johnpgr.craftingtableiifabric
archives_base_name=craftingtable-ii-refabricated

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ class CraftingTableIISlot(
}

val recipe
get(): RecipeEntry<*> =
(inventory as CraftingTableIIInventory).recipes[index]
get(): RecipeEntry<*>? =
(inventory as CraftingTableIIInventory).recipes.getOrNull(index)
}
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ class CraftingTableIIScreen(
//draw description overlay
ctx.drawTexture(descriptionTexture, x - 124, y, 0, 0, 121, 162)

val recipe = slot.recipe
val recipe = slot.recipe ?: continue
val ingredientStacks = arrayListOf<ItemStack>()

//TODO: Find a way to draw all matching stacks. Maybe a timer that loops through the list of matching stacks
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ class CraftingTableIIScreenHandler(

val quickCraft = actionType == SlotActionType.QUICK_MOVE
val itemStack = slot.stack
val recipe = slot.recipe
val recipe = slot.recipe ?: return

ClientPlayNetworking.send(CraftingTableIIPacket(recipe.id, syncId, quickCraft))

Expand Down

0 comments on commit a1a357f

Please sign in to comment.