From 11a3c3dec637673011d5bc46cd4bff69bd9f48bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B6=85=E7=A5=9E=E7=9A=84=E5=86=B0=E5=87=89?= <2801621420@qq.com> Date: Sat, 10 Jul 2021 09:25:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B7=98=E9=87=91=E5=AF=B9?= =?UTF-8?q?=E6=B2=99=E7=A0=BE=E6=97=A0=E6=95=88bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/items/TechDawn_tool.js | 2 +- src/loot/TechDawn_lootPanning.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/items/TechDawn_tool.js b/src/items/TechDawn_tool.js index 0f9534e..10dfe22 100644 --- a/src/items/TechDawn_tool.js +++ b/src/items/TechDawn_tool.js @@ -130,7 +130,7 @@ function BlockBreakEvent(/**@type {cn.nukkit.event.block.BlockBreakEvent}*/event const iid = event.getItem().getId(); const bid = event.getBlock().getId(); //处理淘金碗 - if(iid == 3401 && (bid == 12 || iid == 13)){ + if(iid == 3401 && (bid == 12 || bid == 13)){ let item = lootPanning.getPanningResult(event.getBlock().getId() == 12); event.setDrops(Java.to([item], "cn.nukkit.item.Item[]")); } diff --git a/src/loot/TechDawn_lootPanning.js b/src/loot/TechDawn_lootPanning.js index d106d9b..24a3ac3 100644 --- a/src/loot/TechDawn_lootPanning.js +++ b/src/loot/TechDawn_lootPanning.js @@ -48,7 +48,7 @@ RandomItem.putSelector(new ConstantItemSelector(3515, root_gravelPanning), 0.012 RandomItem.putSelector(new ConstantItemSelector(3516, root_gravelPanning), 0.016);//镍 RandomItem.putSelector(new ConstantItemSelector(3517, root_gravelPanning), 0.01);//铬 RandomItem.putSelector(new ConstantItemSelector(3518, root_gravelPanning), 0.015);//锰 -RandomItem.putSelector(new ConstantItemSelector(318, root_gravelPanning), 0.40);//燧石 +RandomItem.putSelector(new ConstantItemSelector(318, root_gravelPanning), 0.445);//燧石 //通过反射api调用选择方法 const Clazz = java.lang.Class; let Rclazz = Clazz.forName("cn.nukkit.item.randomitem.RandomItem");