diff --git a/scripts/main.js b/scripts/main.js index 1278abb..7edf57d 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); } }) @@ -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 +}