diff --git a/manifest.json b/manifest.json index 717492f..a92c12b 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "format_version": 2, "header": { - "name": "Note Block+ v2.0.1", + "name": "Note Block+ v2.0.2", "description": "音ブロックの音階を表示するアドオン。 \nTwitter:@oasoby", "min_engine_version": [ 1, @@ -12,7 +12,7 @@ "version": [ 2, 0, - 1 + 2 ] }, "modules": [ diff --git a/scripts/main.js b/scripts/main.js index 2f12985..d5c0980 100644 --- a/scripts/main.js +++ b/scripts/main.js @@ -23,7 +23,7 @@ world.afterEvents.playerSpawn.subscribe(e => { e.player.setDynamicProperty("is_display_click_count", DefaultConfig.is_display_click_count); } if (e.player.getDynamicProperty("isEnable") == undefined) { - sourceEntity.setDynamicProperty("isEnable", true); + e.player.setDynamicProperty("isEnable", true); } }) @@ -380,9 +380,9 @@ system.afterEvents.scriptEventReceive.subscribe(e => { }) } else if (id == "note:version") { if (sourceEntity.getDynamicProperty("language") == 1) { - sourceEntity.sendMessage("§eNoteBlock+のバージョンは 2.0.1 です。"); + sourceEntity.sendMessage("§eNoteBlock+のバージョンは 2.0.2 です。"); } else { - sourceEntity.sendMessage("§eNoteBlock+ is at version 2.0.1."); + sourceEntity.sendMessage("§eNoteBlock+ is at version 2.0.2."); } } }) @@ -395,4 +395,4 @@ function initializeConfig(player) { player.setDynamicProperty("scale_notation", DefaultConfig.scale_notation); player.setDynamicProperty("is_display_instrument", DefaultConfig.is_display_instrument); player.setDynamicProperty("is_display_click_count", DefaultConfig.is_display_click_count); -} \ No newline at end of file +}