Skip to content

Commit

Permalink
Port recipe book fix to 1.17
Browse files Browse the repository at this point in the history
  • Loading branch information
Pyrofab committed Jul 11, 2021
1 parent fda4f01 commit 95b9285
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
------------------------------------------------------
Version 0.4.1
------------------------------------------------------
**Fixes**
- Port recipe book fix from 0.2.1

------------------------------------------------------
Version 0.4.0
------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ org.gradle.jvmargs=-Xmx1G
loader_version=0.11.6

# Mod Properties
mod_version = 0.4.0
mod_version = 0.4.1
maven_group = io.github.ladysnake
archives_base_name = locki

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
public abstract class RecipeBookWidgetMixin {
@Shadow protected MinecraftClient client;

@Inject(method = "isOpen", at = @At("HEAD"), cancellable = true)
@Inject(method = "isGuiOpen", at = @At("HEAD"), cancellable = true)
private void forceCloseGui(CallbackInfoReturnable<Boolean> cir) {
if (MinecraftClient.getInstance().currentScreen instanceof InventoryScreen && InventoryKeeper.get(this.client.player).isLocked(DefaultInventoryNodes.CRAFTING_BOOK)) {
cir.setReturnValue(false);
Expand Down

0 comments on commit 95b9285

Please sign in to comment.