diff --git a/Canopy [BP]/scripts/src/rules/allowBubbleColumnPlacement.js b/Canopy [BP]/scripts/src/rules/allowBubbleColumnPlacement.js index 962a422..a20ca7e 100644 --- a/Canopy [BP]/scripts/src/rules/allowBubbleColumnPlacement.js +++ b/Canopy [BP]/scripts/src/rules/allowBubbleColumnPlacement.js @@ -10,7 +10,7 @@ new Rule({ world.beforeEvents.playerPlaceBlock.subscribe((event) => { if (!event.player || !Rule.getNativeValue('allowBubbleColumnPlacement')) return; system.run(() => { - if (event.player.getComponent('equippable').getEquipment('Mainhand').typeId === 'minecraft:bubble_column') { + if (event.player.getComponent('equippable').getEquipment('Mainhand')?.typeId === 'minecraft:bubble_column') { world.structureManager.place('mystructure:bubble_column', event.dimension, event.block.location); } });