From 9e31b908d02ef264148957a365456e29b2ba3bba Mon Sep 17 00:00:00 2001 From: Dylan Fowler <129338316+defowler2005@users.noreply.github.com> Date: Thu, 13 Jul 2023 02:33:35 +0930 Subject: [PATCH] Update registerWorldDynamicProperties.js (#288) --- .../server/DynamicProperty/registerWorldDynamicProperties.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/MinecraftApi/@minecraft/server/DynamicProperty/registerWorldDynamicProperties.js b/docs/MinecraftApi/@minecraft/server/DynamicProperty/registerWorldDynamicProperties.js index 0eaeb0ca..67edc358 100644 --- a/docs/MinecraftApi/@minecraft/server/DynamicProperty/registerWorldDynamicProperties.js +++ b/docs/MinecraftApi/@minecraft/server/DynamicProperty/registerWorldDynamicProperties.js @@ -1,6 +1,6 @@ import { DynamicPropertiesDefinition, world } from "@minecraft/server"; -world.events.worldInitialize.subscribe(({propertyRegistry}) => { +world.afterEvents.worldInitialize.subscribe(({propertyRegistry}) => { // add boolean dynamic property const dynamicProperty = new DynamicPropertiesDefinition(); dynamicProperty.defineBoolean("my_boolean"); @@ -22,4 +22,4 @@ world.setDynamicProperty("my_string", 'Hi mom'); world.getDynamicProperty("my_boolean"); // true world.getDynamicProperty("my_number"); // 100 -world.getDynamicProperty("my_string"); // 'Hi mom' \ No newline at end of file +world.getDynamicProperty("my_string"); // 'Hi mom'