Skip to content

Commit

Permalink
fix: 2.1.1, fixing the dupe exploit
Browse files Browse the repository at this point in the history
closes #44
  • Loading branch information
Jamalam360 committed May 21, 2024
1 parent d9a0be8 commit 7944b58
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
8 changes: 1 addition & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
- Port to 1.20.6
- It should be safe to update worlds from 1.20.4 to 1.20.6 **ON FABRIC** as a datafixer has been
implemented
to migrate from NBT to components, but as always make a backup in case.
- If [Curios#411](https://github.com/TheIllusiveC4/Curios/issues/411) is implemented, it will be
safe to do so on Neoforge. For now, upgrading Neoforge worlds **WILL CAUSE LOSS OF ITEMS IN
THE BELT**.
- Fix a dupe exploit (#44)
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ public class ServerGamePacketListenerImplMixin {
)
)
private boolean utilitybelt$disallowOffhandWhenInBelt(boolean original) {
return original && !StateManager.getServerInstance().isInBelt(this.player);
return original || StateManager.getServerInstance().isInBelt(this.player);
}
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ org.gradle.jvmargs=-Xmx3G
org.gradle.daemon=false
org.gradle.parallel=true

version=2.1.0+1.20.6
version=2.1.1+1.20.6
minecraft_version=1.20.6
branch=main
group=io.github.jamalam360
Expand Down

0 comments on commit 7944b58

Please sign in to comment.