From eed1fa1853a174148a4e046c1497387242a6d03e Mon Sep 17 00:00:00 2001 From: LJM12914 Date: Sat, 17 Aug 2024 15:28:56 +0800 Subject: [PATCH] 1.1.1 Minor fixes --- abs_vertical_slabs_BP/manifest.json | 2 +- abs_vertical_slabs_BP/scripts/blockChange/collectWater.js | 2 +- abs_vertical_slabs_BP/scripts/copper/lightningDeoxidize.js | 4 ---- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/abs_vertical_slabs_BP/manifest.json b/abs_vertical_slabs_BP/manifest.json index c3286bb..03cbe51 100644 --- a/abs_vertical_slabs_BP/manifest.json +++ b/abs_vertical_slabs_BP/manifest.json @@ -8,7 +8,7 @@ "description": "基岩之上服务器模组。提供生存友好的竖向半砖和混合半砖。", "min_engine_version": [ 1, 21, 20 ], "uuid": "3ad6fb9e-6aba-4508-b8af-1f6185767adf", - "version": [ 1, 1, 0 ] + "version": [ 1, 1, 1 ] }, "modules": [ { diff --git a/abs_vertical_slabs_BP/scripts/blockChange/collectWater.js b/abs_vertical_slabs_BP/scripts/blockChange/collectWater.js index 2a109e1..a16ede8 100644 --- a/abs_vertical_slabs_BP/scripts/blockChange/collectWater.js +++ b/abs_vertical_slabs_BP/scripts/blockChange/collectWater.js @@ -4,7 +4,7 @@ import { isModItem } from "../utils/namespace"; /**@param {ItemUseOnBeforeEvent} data*/ export default function collectWater(data){ - world.sendMessage(meetConversionConditions(data.block)?"true":"false"); + world.sendMessage(`${meetConversionConditions(data.block)}`); if( //为非冒险模式玩家 data.source.typeId === "minecraft:player" && data.source.getGameMode() != GameMode.adventure //为空桶和模组方块 diff --git a/abs_vertical_slabs_BP/scripts/copper/lightningDeoxidize.js b/abs_vertical_slabs_BP/scripts/copper/lightningDeoxidize.js index e486e6d..82b031f 100644 --- a/abs_vertical_slabs_BP/scripts/copper/lightningDeoxidize.js +++ b/abs_vertical_slabs_BP/scripts/copper/lightningDeoxidize.js @@ -114,10 +114,6 @@ function deoxidationInfo(entity){ case 5: blockAttached = block.west(1); break; - default: - console.error(`Direction for lightning rod get other cases: ${direction}`); - world.sendMessage("§e您有一条新的 bug 消息,请及时查收!"); - break; } if(blockAttached && hasOxidation(blockAttached.typeId)) result = { meetsCondition: true,