Skip to content
This repository was archived by the owner on Jun 17, 2025. It is now read-only.

Commit d64f8a0

Browse files
committed
Fixes IPNIgnore annotated containers handling.
1 parent e9352ab commit d64f8a0

6 files changed

Lines changed: 13 additions & 13 deletions

File tree

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ buildscript {
99
}
1010
}
1111

12-
val versionObj = Version("1", "1", "0",
12+
val versionObj = Version("1", "1", "1",
1313
preRelease = (System.getenv("IPNEXT_RELEASE") == null))
1414

1515

changelog.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
<!-- latest begin -->
2+
### 1.1.1
3+
- fixed client crash on Forge 1.17.x
4+
- fixed ignored container types handling
5+
- probably fixed server crash on forge when the mod is installed. **NOTE:** Don't install it on servers it doesn't do anything.
26
### 1.1.0
37
* Added API for integration with other mods. It is now possible for other mods to:
48
* mark their screens to be ignored so IPN won't try to interact with them.
@@ -32,10 +36,6 @@
3236
- Preventing swipe moving of locked slots doesn't work.
3337
- Preventing item pickups in empty locked slots falls back to the server method i.e. items are picked into the inventory and then thrown out.
3438

35-
36-
37-
38-
3939
### 0.8.6
4040
- Fixed issue with Forge mixin handling that causes incompatibility with [Timeless and Classics](https://www.curseforge.com/minecraft/mc-mods/timeless-and-classic) and [I18nUpdateMod](https://www.curseforge.com/minecraft/mc-mods/i18nupdatemod), and possibly others
4141

platforms/fabric-1.16/src/main/java/org/anti_ad/mc/ipnext/inventory/ContainerTypes.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,11 @@ object ContainerTypes {
143143
v = nonStorage
144144
register(ignoredClass, v, true)
145145
}
146-
} else if (ignoredClass != null && z !== ignoredClass) {
146+
} else if (ignoredClass != null && z != ignoredClass) {
147147
v = nonStorage
148148
register(ignoredClass, v, true)
149149
} else {
150-
v = innerMap[z].orDefault { unknownContainerDefaultTypes }
150+
v = outerMap[z] ?: innerMap[z] ?: unknownContainerDefaultTypes
151151
}
152152
}
153153
return v

platforms/fabric-1.17/src/main/java/org/anti_ad/mc/ipnext/inventory/ContainerTypes.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,11 @@ object ContainerTypes {
143143
v = nonStorage
144144
register(ignoredClass, v, true)
145145
}
146-
} else if (ignoredClass != null && z !== ignoredClass) {
146+
} else if (ignoredClass != null && z != ignoredClass) {
147147
v = nonStorage
148148
register(ignoredClass, v, true)
149149
} else {
150-
v = innerMap[z].orDefault { unknownContainerDefaultTypes }
150+
v = outerMap[z] ?: innerMap[z] ?: unknownContainerDefaultTypes
151151
}
152152
}
153153
return v

platforms/forge-1.16/src/main/java/org/anti_ad/mc/ipnext/inventory/ContainerTypes.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,11 @@ object ContainerTypes {
143143
v = nonStorage
144144
register(ignoredClass, v, true)
145145
}
146-
} else if (ignoredClass != null && z !== ignoredClass) {
146+
} else if (ignoredClass != null && z != ignoredClass) {
147147
v = nonStorage
148148
register(ignoredClass, v, true)
149149
} else {
150-
v = innerMap[z].orDefault { unknownContainerDefaultTypes }
150+
v = outerMap[z] ?: innerMap[z] ?: unknownContainerDefaultTypes
151151
}
152152
}
153153
return v

platforms/forge-1.17/src/main/java/org/anti_ad/mc/ipnext/inventory/ContainerTypes.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,11 @@ object ContainerTypes {
143143
v = nonStorage
144144
register(ignoredClass, v, true)
145145
}
146-
} else if (ignoredClass != null && z !== ignoredClass) {
146+
} else if (ignoredClass != null && z != ignoredClass) {
147147
v = nonStorage
148148
register(ignoredClass, v, true)
149149
} else {
150-
v = innerMap[z].orDefault { unknownContainerDefaultTypes }
150+
v = outerMap[z] ?: innerMap[z] ?: unknownContainerDefaultTypes
151151
}
152152
}
153153
return v

0 commit comments

Comments
 (0)