Skip to content

Commit

Permalink
update 1.14 too
Browse files Browse the repository at this point in the history
  • Loading branch information
blackd committed Dec 10, 2021
1 parent 04c0351 commit 416c51e
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
5 changes: 3 additions & 2 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<!-- latest begin -->

### 1.2.1
- fixes mode matching/all not moving all expected items.
- fixed handling of overstacked items. Now we will just leave them in place.
- fixes throw matching/all not dropping all expected items.
- "fixed" handling of overstacked items. Now we will just leave them in place.
- forge 1.18 support looks stable enough
- fabric 1.14 gets an update because of the first fix. If no other major problems are found this will be the last update.

<!-- latest end -->

Expand Down
4 changes: 0 additions & 4 deletions description/description.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ If you speak another language and would like to help to translate it, you can do

If you're a Kotlin developer and want to contribute, please see [the source](https://github.com/blackd/Inventory-Profiles)

## Thanks

Thanks to **jsminda**, the original author of [Inventory Profile](https://github.com/jsnimda/Inventory-Profiles)

## License

This mod is distributed under [MIT license](https://github.com/blackd/Inventory-Profiles/blob/all-in-one/LICENSE)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package org.anti_ad.mc.common.vanilla.alias

import net.minecraft.command.arguments.NbtPathArgumentType
import net.minecraft.enchantment.Enchantment
import net.minecraft.enchantment.EnchantmentHelper
import net.minecraft.enchantment.Enchantments
import net.minecraft.entity.effect.StatusEffectInstance
import net.minecraft.item.Item
import net.minecraft.item.ItemGroup
Expand Down Expand Up @@ -52,6 +54,8 @@ typealias StringNbtReader = StringNbtReader // JsonToNBT.getTagFromJson = String
// ============

typealias EnchantmentHelper = EnchantmentHelper
typealias Enchantment = Enchantment
typealias Enchantments = Enchantments

// ============
// potion
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package org.anti_ad.mc.ipnext.item


import org.anti_ad.mc.common.Log
import org.anti_ad.mc.common.extensions.ifTrue
import org.anti_ad.mc.common.vanilla.alias.Enchantment
import org.anti_ad.mc.common.vanilla.alias.EnchantmentHelper
import org.anti_ad.mc.common.vanilla.alias.Identifier
import org.anti_ad.mc.common.vanilla.alias.ItemGroup
Expand Down Expand Up @@ -98,6 +98,9 @@ inline val ItemType.enchantmentsScore: Double
acc + if (enchantment.isCursed) -0.001 else level.toDouble() / enchantment.maximumLevel
} // cursed enchantments +0 scores

inline val ItemType.enchantments: MutableMap<Enchantment, Int>
get() = EnchantmentHelper.getEnchantments(vanillaStack)

inline val ItemType.isDamageable: Boolean
get() = vanillaStack.isDamageable
inline val ItemType.maxDamage: Int
Expand Down
3 changes: 2 additions & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ if (JavaVersion.current() >= JavaVersion.VERSION_16) {
include("platforms:fabric-1.16")
include("platforms:fabric-1.15")
include("platforms:forge-1.16")
include("platforms:fabric-1.14")

if (System.getenv("IPN_COMPILE_ALL") != null) {
include("platforms:fabric-1.14")

}


Expand Down

0 comments on commit 416c51e

Please sign in to comment.