Skip to content

Commit

Permalink
1.20
Browse files Browse the repository at this point in the history
  • Loading branch information
gnembon committed Jun 9, 2023
1 parent 2cbfef4 commit af5c647
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
org.gradle.jvmargs=-Xmx1G

# Fabric Properties
# check these on https://fabricmc.net/use or https://modmuss50.me/fabric.html
minecraft_version=1.19.4
yarn_mappings=1.19.4+build.1
loader_version=0.14.17
# check these on https://fabricmc.net/develop/
minecraft_version=1.20
yarn_mappings=1.20+build.1
loader_version=0.14.21
# check available versions on maven for the given minecraft version you are using
carpet_core_version=1.4.100+v230314
carpet_core_version=1.4.112+v230608

# Mod Properties
mod_version = 1.4.100
mod_version = 1.4.112
maven_group = carpet-autocraftingtable
archives_base_name = carpet-autocraftingtable

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public ItemStack quickMove(PlayerEntity player, int index) {
if(
player instanceof ServerPlayerEntity
&& blockEntity.getLastRecipe() != null
&& !blockEntity.shouldCraftRecipe(player.world, (ServerPlayerEntity) player, blockEntity.getLastRecipe())
&& !blockEntity.shouldCraftRecipe(player.getWorld(), (ServerPlayerEntity) player, blockEntity.getLastRecipe())
) {
return ItemStack.EMPTY;
}
Expand Down Expand Up @@ -179,8 +179,8 @@ protected void onTake(int amount) {
@Override
protected void onCrafted(ItemStack stack, int amount) {
super.onCrafted(stack); // from CraftingResultsSlot onCrafted
if (amount > 0) stack.onCraft(this.player.world, this.player, amount);
if (this.inventory instanceof RecipeUnlocker) ((RecipeUnlocker)this.inventory).unlockLastRecipe(this.player);
if (amount > 0) stack.onCraft(this.player.getWorld(), this.player, amount);
if (this.inventory instanceof RecipeUnlocker) ((RecipeUnlocker)this.inventory).unlockLastRecipe(this.player, getStacks());
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
],
"accessWidener": "act.accesswidener",
"depends": {
"minecraft": "1.19.x",
"minecraft": ">=1.20",
"fabricloader": ">=0.10.0",
"carpet": "*"
},
Expand Down

0 comments on commit af5c647

Please sign in to comment.