Skip to content

Commit

Permalink
合成耗时功能设计完毕
Browse files Browse the repository at this point in the history
  • Loading branch information
Lithewings committed Aug 13, 2024
1 parent 7c6b1df commit 9be3970
Show file tree
Hide file tree
Showing 32 changed files with 1,155 additions and 399 deletions.
88 changes: 50 additions & 38 deletions src/main/generated/.cache/04fb54d911b9daf8fa33d64269c96354f0dfbd70
Original file line number Diff line number Diff line change
@@ -1,81 +1,95 @@
// 1.21 2024-08-12T11:48:43.6557637 MITEequilibrium/Recipes
// 1.21 2024-08-13T08:27:31.2286082 MITEequilibrium/Recipes
314fc1cfe6b117e5dc27cce742a9ee39a7c32af1 data\miteequilibrium\recipe\copper_axe.json
c05cc1b8a4428745e97c814ac9ad1259d2eb8765 data\miteequilibrium\recipe\silver_shovel.json
ecde098f400d9a35afb8f04ed623b40425db6cf4 data\miteequilibrium\advancement\recipes\misc\adamantium_block.json
0624b2eae6c0b84dc2dfc512c914898141cb6f91 data\miteequilibrium\advancement\recipes\misc\copper_from_block.json
3e0d46555613cd73eaa81a866536b99f089089e0 data\miteequilibrium\recipe\silver_dagger.json
54f74d888e4362b35df5049818207f1258366c08 data\miteequilibrium\advancement\recipes\tools\mithril_axe.json
6374346478a2bf9d980d17f5bb88b9ab8e464886 data\miteequilibrium\advancement\recipes\tools\silver_hoe.json
3e0d46555613cd73eaa81a866536b99f089089e0 data\miteequilibrium\recipe\silver_dagger.json
17e464467be181d883fb2219384e7aceb30ce65f data\miteequilibrium\recipe\adamantium_pickaxe.json
654e581deb16afc81d5c47dd6664112e88add551 data\miteequilibrium\recipe\mithril_from_smelting_mithril_raw.json
3516d074d46e4eea0a263a6104507dcad7bb43c4 data\miteequilibrium\recipe\flint_shovel.json
a8d8e5356cb496866f5cbeefe448617950de370e data\miteequilibrium\recipe\mithril_axe.json
e1c31abe2a1f2a608e0d9c11f77869c4796ca2c7 data\miteequilibrium\recipe\adamantium_axe.json
9f35edbf6cbacaa4a0d307769a93b3ebe6044755 data\miteequilibrium\recipe\diamond_crafting_table.json
eef83431d46825b331d3a0255814920e6d1d4479 data\miteequilibrium\recipe\adamantium_from_block.json
abb1a06244f42eb29e6b4c779c3d3e27252e3bf9 data\miteequilibrium\advancement\recipes\misc\mithril_from_smelting_mithril_raw.json
317fa84f40a330d88ca0907eb5112922f15e84c2 data\miteequilibrium\recipe\mithril_nugget.json
7ebc48c9822475cc7072c13c8a3a26f48ceaf627 data\miteequilibrium\recipe\copper_shovel.json
ba14b1369fa6259102ec53e59fc18c854d675d80 data\miteequilibrium\recipe\flint_axe.json
0bb1bcc6f65df2ac5a6fa1a109a7c5d093597cc8 data\miteequilibrium\recipe\mithril_dagger.json
c08da4b746ba6452cc648575c0956af2ef4bfa24 data\miteequilibrium\recipe\copper_from_block.json
bf21478f77fd259742eabaf317fbec6f86dbdfb0 data\miteequilibrium\advancement\recipes\tools\flint_shovel.json
555053cc5fd09b6858ef15a89c77f7a3f21f57f8 data\miteequilibrium\recipe\mithril_shovel.json
40598ba96ecd68bea4d6f51c7a102fa29dab3256 data\miteequilibrium\advancement\recipes\tools\adamantium_pickaxe.json
17d23f6ff2e1ecbdf92fbbc49a67368a1b9bac81 data\miteequilibrium\recipe\copper_dagger.json
fc10f6e12e7252d1c3972173612eb627455b3d98 data\miteequilibrium\recipe\mithril_from_block.json
f5d2f456df2fe0a25320ff5e72013aa32778b02e data\miteequilibrium\advancement\recipes\misc\adamantium.json
1aaf0449989350824d610edd4fa6b6fe0f4bab1c data\miteequilibrium\recipe\silver_nugget.json
f0b39d5b17bd7ee42b7a4c6268161e8a6bca5957 data\miteequilibrium\advancement\recipes\tools\copper_shovel.json
614cbc3a440e5f3b18c53edd54d9582fc5f276a7 data\miteequilibrium\recipe\mithril.json
8969d9efcb2e780a5c4e4e9c639fca465fc4c5c4 data\miteequilibrium\recipe\iron_crafting_table.json
38edfb04aa426151dfdafda6201911124ec50ae5 data\miteequilibrium\recipe\mithril_block.json
6d26f7b6f41327ed3d0e612808a339fda35cfaf8 data\miteequilibrium\recipe\copper.json
68c5ce2e5a7b69a5b32b1b21c739129697e957ea data\miteequilibrium\advancement\recipes\tools\adamantium_hoe.json
653f76fe61b76db80791e191f537a661700dda7f data\miteequilibrium\recipe\copper_block.json
a0008b59edbad041064997f4be33ac79f8ffbe1d data\miteequilibrium\advancement\recipes\tools\gold_dagger.json
ebbd4902c5503a749d82e0cf44848449645003ac data\miteequilibrium\recipe\copper_nugget.json
665f927d4a9684072318076922ae2a0b973f2b7c data\miteequilibrium\recipe\silver_axe.json
e985af7c6a06dfdc858124a8b4f55e13a0911948 data\miteequilibrium\recipe\mithril_pickaxe.json
4df59820040097f8c67c0de6fefc13259223499c data\miteequilibrium\recipe\silver_block.json
f7971f02a99bb5c64a94af9c74b7dd5ea0105a4c data\miteequilibrium\recipe\adamantium_from_smelting_adamantium_raw.json
1b68ba75eaf46136bb69f90e6845f4972fa5cb1e data\miteequilibrium\advancement\recipes\misc\silver.json
8991945327f9f341f6e6e4e0042a64f3a6dba43f data\miteequilibrium\recipe\copper_from_smelting_copper_ingot.json
fc05afe6a2cf37f289c03513e6804e729d90c5d1 data\miteequilibrium\recipe\copper_pickaxe.json
58e99d8b0f73c8c11e351d2cba7f841da3dbe1cb data\miteequilibrium\advancement\recipes\misc\adamantium_nugget.json
926f88907f03f9e4fcb6d13073b5bbfe6d02cddb data\miteequilibrium\advancement\recipes\misc\copper_crafting_table.json
15af8f99843db24483c89b1ba3463ec801490f3e data\miteequilibrium\advancement\recipes\misc\silver_block.json
39ddcd9964adb3c5edde9bcdc0b3196bdfa00742 data\miteequilibrium\advancement\recipes\misc\piece_to_flint.json
53a68a795d2d099d6fde3a87fcf52d27fa73a157 data\miteequilibrium\advancement\recipes\tools\copper_pickaxe.json
2901322250d14a57e6d28775fbe468d9ba012e93 data\miteequilibrium\advancement\recipes\tools\mithril_hoe.json
b82aa92b1022e5171db93afbfb17c8245dd065b6 data\miteequilibrium\advancement\recipes\tools\silver_axe.json
3a1274decc637597790e1e552f867d6d64adb62c data\miteequilibrium\recipe\piece_to_flint.json
d63eb785c9ee1bbddf6224331a8e2d270ddbd8d4 data\miteequilibrium\recipe\adamantium_block.json
b22b06e4de912db3c0306479236eddbf0464d88b data\miteequilibrium\advancement\recipes\misc\mithril_from_block.json
5f246081a1af8045d3a8146864d72cba31064887 data\miteequilibrium\recipe\adamantium_hoe.json
561f3889cd9bc77bdb5b1cdd8ddc55c01b00bec6 data\miteequilibrium\recipe\mithril_hoe.json
b5edb270a16ad601ce1892ce5baffc7ab16efc47 data\miteequilibrium\recipe\flint_to_piece.json
c86667a61379aa9db9f5e86ad26fd6abc7e0c5f5 data\miteequilibrium\recipe\netherite_crafting_table.json
0d1e4959e8818dee61e660eebc402e4b34f6c815 data\miteequilibrium\recipe\adamantium_shovel.json
6d86ed48e2f9a236b1d94cf47252752af40b4492 data\miteequilibrium\recipe\adamantium_dagger.json
ccdae9456465132dd8cf9e0ec6f878ac716beac2 data\miteequilibrium\advancement\recipes\misc\silver_from_smelting_silver_raw.json
fefdc96ea823f05c4590ac1bdb477bd7c2f23ee9 data\miteequilibrium\recipe\silver_from_block.json
a60a36f183438cc3005c3aafd375aa1c0b9f5b79 data\miteequilibrium\advancement\recipes\misc\adamantium_from_block.json
ecde098f400d9a35afb8f04ed623b40425db6cf4 data\miteequilibrium\advancement\recipes\misc\adamantium_block.json
6374346478a2bf9d980d17f5bb88b9ab8e464886 data\miteequilibrium\advancement\recipes\tools\silver_hoe.json
dec9dab72f1b351c0ffe071812a4018d3522673a data\miteequilibrium\recipe\flint_hatchet.json
654e581deb16afc81d5c47dd6664112e88add551 data\miteequilibrium\recipe\mithril_from_smelting_mithril_raw.json
a8d8e5356cb496866f5cbeefe448617950de370e data\miteequilibrium\recipe\mithril_axe.json
3516d074d46e4eea0a263a6104507dcad7bb43c4 data\miteequilibrium\recipe\flint_shovel.json
928710920aa3af2b5ae2bac323e92832c19dd3da data\miteequilibrium\recipe\copper_crafting_table.json
317fa84f40a330d88ca0907eb5112922f15e84c2 data\miteequilibrium\recipe\mithril_nugget.json
94eb9359fc103d4aef43269bc73805779aa64dfc data\miteequilibrium\advancement\recipes\misc\netherite_crafting_table.json
ba14b1369fa6259102ec53e59fc18c854d675d80 data\miteequilibrium\recipe\flint_axe.json
0bb1bcc6f65df2ac5a6fa1a109a7c5d093597cc8 data\miteequilibrium\recipe\mithril_dagger.json
c08da4b746ba6452cc648575c0956af2ef4bfa24 data\miteequilibrium\recipe\copper_from_block.json
bf21478f77fd259742eabaf317fbec6f86dbdfb0 data\miteequilibrium\advancement\recipes\tools\flint_shovel.json
555053cc5fd09b6858ef15a89c77f7a3f21f57f8 data\miteequilibrium\recipe\mithril_shovel.json
40598ba96ecd68bea4d6f51c7a102fa29dab3256 data\miteequilibrium\advancement\recipes\tools\adamantium_pickaxe.json
f5d2f456df2fe0a25320ff5e72013aa32778b02e data\miteequilibrium\advancement\recipes\misc\adamantium.json
614cbc3a440e5f3b18c53edd54d9582fc5f276a7 data\miteequilibrium\recipe\mithril.json
68c5ce2e5a7b69a5b32b1b21c739129697e957ea data\miteequilibrium\advancement\recipes\tools\adamantium_hoe.json
a7fa9e2a4750daa69b243f050c1502f15e5591cf data\miteequilibrium\recipe\flint_craft_table.json
653f76fe61b76db80791e191f537a661700dda7f data\miteequilibrium\recipe\copper_block.json
a0008b59edbad041064997f4be33ac79f8ffbe1d data\miteequilibrium\advancement\recipes\tools\gold_dagger.json
2d541b7f170dc216eeb87871a18b954d64f7ea94 data\miteequilibrium\advancement\recipes\misc\iron_crafting_table.json
1b68ba75eaf46136bb69f90e6845f4972fa5cb1e data\miteequilibrium\advancement\recipes\misc\silver.json
8991945327f9f341f6e6e4e0042a64f3a6dba43f data\miteequilibrium\recipe\copper_from_smelting_copper_ingot.json
95af659da4b54d1efce84ff2a5e31da2bb7d671e data\miteequilibrium\advancement\recipes\misc\mithril.json
32d143abf8198a52e7d07e60eef9ad98ef46495e data\miteequilibrium\recipe\flint_knife.json
bd7c9812b73f608c2e1247722232bf124bc46714 data\miteequilibrium\advancement\recipes\misc\copper_block.json
ed7cfd5d63b27e81f11f956543d8a5f612fe1165 data\miteequilibrium\recipe\silver_pickaxe.json
8fcf69dec4b2dfdf49ca16926b98082fa7e5f126 data\miteequilibrium\advancement\recipes\misc\flint_to_piece.json
15af8f99843db24483c89b1ba3463ec801490f3e data\miteequilibrium\advancement\recipes\misc\silver_block.json
39ddcd9964adb3c5edde9bcdc0b3196bdfa00742 data\miteequilibrium\advancement\recipes\misc\piece_to_flint.json
59d7c309d3d90bc863de9bd6f89d41c33271f7b9 data\miteequilibrium\recipe\copper_hoe.json
ea02b55e055430d3052f259222f3f4ef07ce1825 data\miteequilibrium\advancement\recipes\misc\copper_nugget.json
53a68a795d2d099d6fde3a87fcf52d27fa73a157 data\miteequilibrium\advancement\recipes\tools\copper_pickaxe.json
603c059d453350b73d62983cb11b5df686d45d61 data\miteequilibrium\advancement\recipes\tools\flint_knife.json
4744b008da34309f5b62679974e7493086b3a63c data\miteequilibrium\advancement\recipes\tools\adamantium_dagger.json
b82aa92b1022e5171db93afbfb17c8245dd065b6 data\miteequilibrium\advancement\recipes\tools\silver_axe.json
ef05a877782b6db836c0d1319cd0b2770d4d000c data\miteequilibrium\recipe\iron_dagger.json
2901322250d14a57e6d28775fbe468d9ba012e93 data\miteequilibrium\advancement\recipes\tools\mithril_hoe.json
19f4bd5a02f2f0ca13a519618279d9ec7503a6a2 data\miteequilibrium\advancement\recipes\misc\mithril_block.json
3a1274decc637597790e1e552f867d6d64adb62c data\miteequilibrium\recipe\piece_to_flint.json
6342c03adf1eb0e88e27f8a25283ff90d0156197 data\miteequilibrium\advancement\recipes\misc\silver_from_block.json
d63eb785c9ee1bbddf6224331a8e2d270ddbd8d4 data\miteequilibrium\recipe\adamantium_block.json
b22b06e4de912db3c0306479236eddbf0464d88b data\miteequilibrium\advancement\recipes\misc\mithril_from_block.json
6c0e67d9ad996cf904c9b895fd805dbc36d69ab9 data\miteequilibrium\recipe\adamantium.json
fa6f0a112456d37f6f156eea2b2e525ccd1c079a data\miteequilibrium\recipe\adamantium_nugget.json
cda89878c560aac8c74889046e4694d3260a8f79 data\miteequilibrium\recipe\gold_dagger.json
5f246081a1af8045d3a8146864d72cba31064887 data\miteequilibrium\recipe\adamantium_hoe.json
561f3889cd9bc77bdb5b1cdd8ddc55c01b00bec6 data\miteequilibrium\recipe\mithril_hoe.json
bd75dfe683de226b1ae953ee21977a07221d59ca data\miteequilibrium\advancement\recipes\tools\silver_dagger.json
b5edb270a16ad601ce1892ce5baffc7ab16efc47 data\miteequilibrium\recipe\flint_to_piece.json
0d1e4959e8818dee61e660eebc402e4b34f6c815 data\miteequilibrium\recipe\adamantium_shovel.json
5077e7d780d031c78b8b1579f1febb2317801636 data\miteequilibrium\advancement\recipes\tools\silver_shovel.json
49ff23ab7f083033c01c60c803ebf61b9a61acf6 data\miteequilibrium\recipe\silver_from_smelting_silver_raw.json
6d86ed48e2f9a236b1d94cf47252752af40b4492 data\miteequilibrium\recipe\adamantium_dagger.json
263b8ecc2d3db1d777151657ca2dd3dfd3be12e4 data\miteequilibrium\advancement\recipes\tools\copper_dagger.json
88bba28eb978fd24daa4ff7e2fe107a651d1a2c7 data\miteequilibrium\advancement\recipes\tools\mithril_shovel.json
1482060d3675f988c6bc6a31743dac32acc1a17d data\miteequilibrium\advancement\recipes\misc\diamond_crafting_table.json
67f93830020270511e1c64f0706d1f6b6a07220c data\miteequilibrium\advancement\recipes\tools\adamantium_shovel.json
5e3b46da543212ac6eebeef3548ee0c05743cae7 data\miteequilibrium\advancement\recipes\misc\silver_nugget.json
be9425f170db1f4f27f900448742b734c74b9ee9 data\miteequilibrium\advancement\recipes\tools\flint_hatchet.json
c98f2aa24154d2e7bf68acc65cca260727624533 data\miteequilibrium\advancement\recipes\misc\copper_from_smelting_copper_ingot.json
c205b8a2150511cdbca414b0562be74b98cbf1b2 data\miteequilibrium\advancement\recipes\tools\copper_axe.json
6bc1ad5a516714ddc04af954ea3ceba8689d5e23 data\miteequilibrium\advancement\recipes\tools\copper_hoe.json
Expand All @@ -85,11 +99,9 @@ b6944f3fe7f200d77436032ca2def41f5d6c86ab data\miteequilibrium\recipe\silver.json
20af519a9b9c82a01ce0f9bff8e5178e9694d613 data\miteequilibrium\recipe\silver_hoe.json
8bce345f3032241dcfc330eadf3c29a6c6f7ac7c data\miteequilibrium\advancement\recipes\tools\mithril_pickaxe.json
02a982c07d1a1d36b2094798e044f92739153fea data\miteequilibrium\advancement\recipes\tools\silver_pickaxe.json
ccdae9456465132dd8cf9e0ec6f878ac716beac2 data\miteequilibrium\advancement\recipes\misc\silver_from_smelting_silver_raw.json
88db92ae67f55b45be9410d33d8107191ae03683 data\miteequilibrium\advancement\recipes\tools\iron_dagger.json
256decac695900d20b42bc989f28a8bd430222a8 data\miteequilibrium\advancement\recipes\misc\adamantium_from_smelting_adamantium_raw.json
daadc659fc0f8fe730735d0ebe192e357ec4b3ab data\miteequilibrium\advancement\recipes\misc\copper.json
fefdc96ea823f05c4590ac1bdb477bd7c2f23ee9 data\miteequilibrium\recipe\silver_from_block.json
a60a36f183438cc3005c3aafd375aa1c0b9f5b79 data\miteequilibrium\advancement\recipes\misc\adamantium_from_block.json
256decac695900d20b42bc989f28a8bd430222a8 data\miteequilibrium\advancement\recipes\misc\adamantium_from_smelting_adamantium_raw.json
41385794919346844df5db2e2eda9c36c02b2eb8 data\miteequilibrium\advancement\recipes\misc\flint_craft_table.json
3098b78fb801698ee2810ef3395ae514336a21bf data\miteequilibrium\advancement\recipes\misc\mithril_nugget.json
79242b230cc626712202f3434712d93603a034a1 data\miteequilibrium\advancement\recipes\tools\flint_axe.json
Binary file modified src/main/java/com/equilibrium/data/data.zip
Binary file not shown.
67 changes: 67 additions & 0 deletions src/main/java/com/equilibrium/gen/ModRecipeGenerator.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.equilibrium.gen;

import com.equilibrium.block.ModBlocks;
import com.equilibrium.craft_time_register.BlockInit;
import com.equilibrium.item.Metal;
import com.equilibrium.item.ModItems;
import com.equilibrium.item.Tools;
Expand All @@ -14,6 +15,7 @@
import net.minecraft.item.Items;
import net.minecraft.recipe.book.RecipeCategory;
import net.minecraft.registry.RegistryWrapper;
import net.minecraft.registry.tag.ItemTags;
import net.minecraft.util.Identifier;

import java.util.List;
Expand All @@ -31,6 +33,59 @@ public ModRecipeGenerator(FabricDataOutput output, CompletableFuture<RegistryWra

@Override
public void generate(RecipeExporter exporter) {
//craftTables

ShapedRecipeJsonBuilder.create(RecipeCategory.MISC, BlockInit.FLINT_CRAFTING_TABLE).
pattern("X").
pattern("Y").
input('X', Tools.FLINT_KNIFE).
input('Y', ItemTags.LOGS).
criterion("has_item", RecipeProvider.conditionsFromItem(Items.FLINT)).
offerTo(exporter, Identifier.of("miteequilibrium","flint_craft_table"));

ShapedRecipeJsonBuilder.create(RecipeCategory.MISC, BlockInit.COPPER_CRAFTING_TABLE).
pattern("XZ").
pattern("YW").
input('X', Metal.copper).
input('Y', Items.STICK).
input('Z', Items.LEATHER).
input('W', ItemTags.LOGS).
criterion("has_item", RecipeProvider.conditionsFromItem(Metal.copper)).
offerTo(exporter, Identifier.of("miteequilibrium","copper_crafting_table"));

ShapedRecipeJsonBuilder.create(RecipeCategory.MISC, BlockInit.IRON_CRAFTING_TABLE).
pattern("XZ").
pattern("YW").
input('X', Items.IRON_INGOT).
input('Y', Items.STICK).
input('Z', Items.LEATHER).
input('W', ItemTags.LOGS).
criterion("has_item", RecipeProvider.conditionsFromItem(Items.IRON_INGOT)).
offerTo(exporter, Identifier.of("miteequilibrium","iron_crafting_table"));

ShapedRecipeJsonBuilder.create(RecipeCategory.MISC, BlockInit.DIAMOND_CRAFTING_TABLE).
pattern("XZ").
pattern("YW").
input('X', Items.DIAMOND).
input('Y', Items.STICK).
input('Z', Items.LEATHER).
input('W', ItemTags.LOGS).
criterion("has_item", RecipeProvider.conditionsFromItem(Items.DIAMOND)).
offerTo(exporter, Identifier.of("miteequilibrium","diamond_crafting_table"));

ShapedRecipeJsonBuilder.create(RecipeCategory.MISC, BlockInit.NETHERITE_CRAFTING_TABLE).
pattern("XZ").
pattern("YW").
input('X', Items.NETHERITE_INGOT).
input('Y', Items.STICK).
input('Z', Items.LEATHER).
input('W', ItemTags.LOGS).
criterion("has_item", RecipeProvider.conditionsFromItem(Items.NETHERITE_INGOT)).
offerTo(exporter, Identifier.of("miteequilibrium","netherite_crafting_table"));




offerSmelting(exporter,ADAMANTIUM_RAW,RecipeCategory.MISC,Metal.adamantium,100,200,"adamantium_raw");
offerSmelting(exporter,COPPER_INGOT,RecipeCategory.MISC,Metal.copper,10,200,"copper_ingot");
offerSmelting(exporter,MITHRIL_RAW,RecipeCategory.MISC,Metal.mithril,50,200,"mithril_raw");
Expand All @@ -52,6 +107,17 @@ public void generate(RecipeExporter exporter) {
offerTo(exporter, Identifier.of("miteequilibrium","flint_to_piece"));


//hatchet
ShapedRecipeJsonBuilder.create(RecipeCategory.TOOLS, Tools.FLINT_HATCHET).
pattern("XY").
pattern(" Y").
input('X', Items.FLINT).
input('Y',Items.STICK).
criterion("has_item", RecipeProvider.conditionsFromItem(Items.FLINT)).
offerTo(exporter, Identifier.of("miteequilibrium","flint_hatchet"));





//axe
Expand All @@ -64,6 +130,7 @@ public void generate(RecipeExporter exporter) {
criterion("has_item", RecipeProvider.conditionsFromItem(Items.FLINT)).
offerTo(exporter, Identifier.of("miteequilibrium","flint_axe"));


ShapedRecipeJsonBuilder.create(RecipeCategory.TOOLS, Tools.ADAMANTIUM_AXE).
pattern("XX").
pattern("XY").
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public MixinClientPlayerEntity(ClientWorld world, GameProfile profile) {
@Unique
public float getCraftingSpeed(PlayerEntity player) {
float speed = 1F;
speed += 0.02F * Math.min(200, player.experienceLevel);
speed += 0.05F * Math.min(200, player.experienceLevel);
return speed;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,14 @@ private GuiNavigation.Tab getTabNavigation() {
}


private static boolean stopRenderArrow = false;
@Unique
private boolean stopRenderArrow = false;


@Override
public boolean keyPressed(int keyCode, int scanCode, int modifiers) {
if (keyCode != GLFW.GLFW_KEY_LEFT_SHIFT && this.shouldCloseOnEsc()) {
stopRenderArrow=true;
this.stopRenderArrow=true;
this.close();
return true;
}else{
Expand Down Expand Up @@ -87,7 +88,7 @@ public boolean keyPressed(int keyCode, int scanCode, int modifiers) {

// MITEequilibrium.LOGGER.info(String.valueOf(l));

if (stopRenderArrow){
if (this.stopRenderArrow){
return;
}

Expand Down Expand Up @@ -138,8 +139,9 @@ public boolean keyPressed(int keyCode, int scanCode, int modifiers) {
player.craftTime$setCrafting(false);
}
if (invSlot == 0) {
stopRenderArrow=false;
this.stopRenderArrow=false;
if (!player.craftTime$isCrafting() ) {

player.craftTime$startCraftWithNewPeriod(CraftingDifficultyHelper.getCraftingDifficultyFromMatrix(this.handler, true,this));
}

Expand Down
Loading

0 comments on commit 9be3970

Please sign in to comment.