Skip to content

Commit

Permalink
FIx
Browse files Browse the repository at this point in the history
  • Loading branch information
Newspicel committed Jan 8, 2023
1 parent b39ac5b commit ad335cf
Showing 1 changed file with 0 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@ data class DeclareRecipesPacket(
"minecraft:stonecutting" -> arrayInput.readString()
else -> null
}
val ingredients = when (type) {
else -> null
}
val result = when (type) {
else -> null
}
val width = when (type) {
"minecraft:crafting_shaped" -> arrayInput.readVarInt()
else -> null
Expand All @@ -40,18 +34,6 @@ data class DeclareRecipesPacket(
"minecraft:crafting_shaped" -> arrayInput.readVarInt()
else -> null
}
val ingredients = when (type) {
else -> null
}
val ingredient = when (type) {
else -> null
}
val base = when (type) {
else -> null
}
val addition = when (type) {
else -> null
}

return@readVarIntArray DeclareRecipesPacketRecipes(type, recipeId, group, width, height)
}
Expand All @@ -69,12 +51,6 @@ data class DeclareRecipesPacket(
"minecraft:stonecutting" -> arrayOutput.writeString(arrayValue.group!!)
else -> {}
}
when (arrayValue.type) {
else -> {}
}
when (arrayValue.type) {
else -> {}
}
when (arrayValue.type) {
"minecraft:crafting_shaped" -> arrayOutput.writeVarInt(arrayValue.width!!)
else -> {}
Expand All @@ -83,18 +59,6 @@ data class DeclareRecipesPacket(
"minecraft:crafting_shaped" -> arrayOutput.writeVarInt(arrayValue.height!!)
else -> {}
}
when (arrayValue.type) {
else -> {}
}
when (arrayValue.type) {
else -> {}
}
when (arrayValue.type) {
else -> {}
}
when (arrayValue.type) {
else -> {}
}
}
}
}
Expand Down

0 comments on commit ad335cf

Please sign in to comment.