From 7a07bcb5973e3803e495eec4acececc19382e8f6 Mon Sep 17 00:00:00 2001 From: fuyuka Date: Sun, 21 Apr 2024 17:12:01 +0800 Subject: [PATCH] fix recipe --- .../net/touhou/mystiasizakaya/procedures/GetTimeProcedure.java | 3 +++ .../net/touhou/mystiasizakaya/procedures/SteamerProcedure.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/touhou/mystiasizakaya/procedures/GetTimeProcedure.java b/src/main/java/net/touhou/mystiasizakaya/procedures/GetTimeProcedure.java index 325cd9fd..9e3272dc 100644 --- a/src/main/java/net/touhou/mystiasizakaya/procedures/GetTimeProcedure.java +++ b/src/main/java/net/touhou/mystiasizakaya/procedures/GetTimeProcedure.java @@ -72,6 +72,9 @@ public static double execute(LevelAccessor world, double x, double y, double z) if (MystiasIzakayaModItems.TANG_YUAN.get() == target.getItem()) { time = 60; } + if (MystiasIzakayaModItems.SHUI_ZHU_YU.get() == target.getItem()) { + time = 96; + } } if (GetItemStack.getItemStack(world, new BlockPos(x, y, z), 0).getItem() == MystiasIzakayaModItems.ZHENG_GUO.get()) { if (MystiasIzakayaModItems.HUAN_TAN_HUA_GAO.get() == target.getItem()) { diff --git a/src/main/java/net/touhou/mystiasizakaya/procedures/SteamerProcedure.java b/src/main/java/net/touhou/mystiasizakaya/procedures/SteamerProcedure.java index 200ef269..9faeb6a0 100644 --- a/src/main/java/net/touhou/mystiasizakaya/procedures/SteamerProcedure.java +++ b/src/main/java/net/touhou/mystiasizakaya/procedures/SteamerProcedure.java @@ -46,7 +46,7 @@ public static String execute(LevelAccessor world, double x, double y, double z) && raws.contains((ForgeRegistries.ITEMS.getKey(MystiasIzakayaModItems.MO_GU.get()).toString())) && raws.contains((ForgeRegistries.ITEMS.getKey(MystiasIzakayaModItems.HAI_TAI.get()).toString()))) { str = str + "$start%" + ForgeRegistries.ITEMS.getKey(MystiasIzakayaModItems.ZHU_TONG_ZHENG_DAN.get()).toString() + "$end%"; } - if (raws.contains((ForgeRegistries.ITEMS.getKey(MystiasIzakayaModItems.MO_GU.get()).toString())) && raws.contains((ForgeRegistries.ITEMS.getKey(MystiasIzakayaModItems.NAN_GUA.get()).toString())) + if (raws.contains((ForgeRegistries.ITEMS.getKey(MystiasIzakayaModItems.MO_GU.get()).toString())) && raws.contains((ForgeRegistries.ITEMS.getKey(MystiasIzakayaModItems.YANG_CONG.get()).toString())) && raws.contains((ForgeRegistries.ITEMS.getKey(MystiasIzakayaModItems.HUANG_YOU.get()).toString()))) { str = str + "$start%" + ForgeRegistries.ITEMS.getKey(MystiasIzakayaModItems.NAI_YOU_TUN_CAI.get()).toString() + "$end%"; }