Skip to content

Commit

Permalink
releasing v1.1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
blackd committed Dec 1, 2021
1 parent a799956 commit 4676978
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 22 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ buildscript {
}


val versionObj = Version("1", "1", "8",
val versionObj = Version("1", "1", "9",
preRelease = (System.getenv("IPNEXT_RELEASE") == null))


Expand Down
17 changes: 12 additions & 5 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,26 @@
<!-- latest begin -->

### 1.1.8
- it is now possible to disable all user actions for locked slots. It becomes very practical when used in conjunction with "Quick Disable" hotkey.
- fixed locked slots behaviour when a chest or other container is opened.
- rearranged the config screen. Now "Locked Slots" and "Auto Refill" have their own pages. However, the settings to enable or disable them are still in "Mod Settings"
- the configuration file has changed. The old one will automatically be converted but if you downgrade all settings from "Locked Slots" and "Auto Refill" will be lost.
### 1.1.9
- fixed locked slots behaviour when a chest or other container is opened and swipe drop/move is used.
- native 1.18 version.

# 1.14 END OF LIVE ANNOUNCEMENT

1.14 gets an update because I don't want to leave it with a buggy major feature.
This is the last release of Inventory Profiles Next for Minecraft 1.14.x

<!-- latest end -->


<!-- rest begin -->

### 1.1.8
- it is now possible to disable all user actions for locked slots. It becomes very practical when used in conjunction with "Quick Disable" hotkey.
- fixed locked slots behaviour when a chest or other container is opened.
- rearranged the config screen. Now "Locked Slots" and "Auto Refill" have their own pages. However, the settings to enable or disable them are still in "Mod Settings"
- the configuration file has changed. The old one will automatically be converted but if you downgrade all settings from "Locked Slots" and "Auto Refill" will be lost.


### 1.1.7
- fixed crash when opening the wiki link and config folder.
- fixes incompatibility with MaliLib where sometimes this mod key bindings will stop working.
Expand Down
8 changes: 4 additions & 4 deletions platforms/fabric-1.18/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import org.anti_ad.mc.platformsCommonConfig
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import proguard.gradle.ProGuardTask

val supported_minecraft_versions = listOf("1.18-rc4", "1.18-Snapshot")
val supported_minecraft_versions = listOf("1.18")
val mod_loader = "fabric"
val mod_version = project.version.toString()
val minecraft_version = "1.18-rc4"
val mappings_version = "1.18-rc4+build.1"
val loader_version = "0.12.5"
val minecraft_version = "1.18"
val mappings_version = "1.18+build.1"
val loader_version = "0.12.8"
val modmenu_version = "3.0.0"

val mod_artefact_version = project.ext["mod_artefact_version"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ object ContinuousCraftingHandler {
handle()
}

lateinit var monitor: Monitor
var isCrafting = false
private lateinit var monitor: Monitor
private var isCrafting = false

fun init() {
private fun init() {
val container = Vanilla.container()
val types = ContainerTypes.getTypes(container)
isCrafting = types.contains(CRAFTING)
Expand All @@ -66,13 +66,13 @@ object ContinuousCraftingHandler {
processingClick = false
}

var onCraftCount = 0 // this tick crafted item
private var onCraftCount = 0 // this tick crafted item

var crafted = false
private var crafted = false

private val SHIFT = MainKeybind("LEFT_SHIFT", KeybindSettings.GUI_EXTRA)

fun handle() {
private fun handle() {
if (!isCrafting) return
// todo quick craft from recipe book
if (!processingClick && onCraftCount > 0) {
Expand Down Expand Up @@ -117,7 +117,7 @@ object ContinuousCraftingHandler {



class Monitor(container: Container) {
private class Monitor(container: Container) {
val containerSlots = container.`(slots)`
val ingredientSlots = containerSlots.filter { it.`(inventory)` is CraftingInventory }

Expand All @@ -142,11 +142,11 @@ object ContinuousCraftingHandler {
val typeToSlotListMap = mutableMapOf<ItemType, MutableList<Int>>() // slotIndex
for (slotMonitor in slotMonitors) {
with(slotMonitor) {
if (shouldHandle(storedItem,
slot.`(itemStack)`)) {
if (shouldHandle(storedItem, slot.`(itemStack)`)) {
// record this
typeToSlotListMap.getOrPut(storedItem.itemType,
{ mutableListOf() }).add(slot.`(id)`)
typeToSlotListMap.getOrPut(storedItem.itemType) {
mutableListOf()
}.add(slot.`(id)`)
handledSomething = true
}
}
Expand Down Expand Up @@ -182,7 +182,7 @@ object ContinuousCraftingHandler {
}
}

class ItemSlotMonitor(val slot: Slot) {
private class ItemSlotMonitor(val slot: Slot) {
var storedItem = ItemStack.EMPTY

fun save() {
Expand Down

0 comments on commit 4676978

Please sign in to comment.