@orusteam/solariscore 2.6.4 → 2.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"GrassBlockComponent.d.ts","sourceRoot":"","sources":["../../../src/block/components/GrassBlockComponent.ts"],"names":[],"mappings":"AACA,OAAO,EAAS,6BAA6B,EAAE,oBAAoB,EAAE,yBAAyB,EAAW,MAAM,mBAAmB,CAAC;AAkCnI,qBAAa,mBAAoB,YAAW,oBAAoB;;IAK5D,YAAY,CAAC,EAAE,KAAK,EAAE,EAAE,6BAA6B,EAAE,EAAE,MAAM,EAAE,EAAE,yBAAyB;CAS/F"}
1
+ {"version":3,"file":"GrassBlockComponent.d.ts","sourceRoot":"","sources":["../../../src/block/components/GrassBlockComponent.ts"],"names":[],"mappings":"AACA,OAAO,EAAS,6BAA6B,EAAE,oBAAoB,EAAE,yBAAyB,EAAW,MAAM,mBAAmB,CAAC;AAkCnI,qBAAa,mBAAoB,YAAW,oBAAoB;;IAK5D,YAAY,CAAC,EAAE,KAAK,EAAE,EAAE,6BAA6B,EAAE,EAAE,MAAM,EAAE,EAAE,yBAAyB;CAW/F"}
package/dist/index.js CHANGED
@@ -668,7 +668,11 @@ var DateUtil = class {
668
668
  import { system as system2 } from "@minecraft/server";
669
669
  var EntityUtil = class {
670
670
  static applyCameraShake(entity, intensity, seconds, isRotational = false) {
671
- system2.run(() => entity.runCommand(`camerashake add @s ${intensity} ${seconds} ${isRotational ? "rotational" : ""}`));
671
+ system2.run(() => {
672
+ if (entity.isValid) {
673
+ entity.runCommand(`camerashake add @s ${intensity} ${seconds} ${isRotational ? "rotational" : ""}`);
674
+ }
675
+ });
672
676
  }
673
677
  static getEquippedItem(entity, equipmentSlot) {
674
678
  return entity.isValid ? entity.getComponent("minecraft:equippable")?.getEquipment(equipmentSlot) : void 0;
@@ -4405,12 +4409,14 @@ var GrassBlockComponent = class {
4405
4409
  this.onRandomTick = this.onRandomTick.bind(this);
4406
4410
  }
4407
4411
  onRandomTick({ block }, { params }) {
4408
- const aboveBlock = block.above();
4409
- if (aboveBlock && aboveBlock.getLightLevel() === 0) {
4410
- const { dead_block } = params;
4411
- block.setType(dead_block);
4412
- } else {
4413
- trySpreadGrass(block, params);
4412
+ if (block.dimension.isChunkLoaded(block.location)) {
4413
+ const aboveBlock = block.above();
4414
+ if (aboveBlock?.getLightLevel() === 0) {
4415
+ const { dead_block } = params;
4416
+ block.setType(dead_block);
4417
+ } else {
4418
+ trySpreadGrass(block, params);
4419
+ }
4414
4420
  }
4415
4421
  }
4416
4422
  };
@@ -1 +1 @@
1
- {"version":3,"file":"EntityUtil.d.ts","sourceRoot":"","sources":["../../src/utils/EntityUtil.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,SAAS,EAAU,MAAM,mBAAmB,CAAC;AAI7E,qBAAa,UAAU;IACnB,MAAM,CAAC,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,GAAE,OAAe;IAIzG,MAAM,CAAC,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa,GAAG,SAAS,GAAG,SAAS;CAG9F"}
1
+ {"version":3,"file":"EntityUtil.d.ts","sourceRoot":"","sources":["../../src/utils/EntityUtil.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,SAAS,EAAU,MAAM,mBAAmB,CAAC;AAI7E,qBAAa,UAAU;IACnB,MAAM,CAAC,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,GAAE,OAAe;IAQzG,MAAM,CAAC,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa,GAAG,SAAS,GAAG,SAAS;CAG9F"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orusteam/solariscore",
3
- "version": "2.6.4",
3
+ "version": "2.6.5",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1 +0,0 @@
1
- //# sourceMappingURL=PlayerGroup.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PlayerGroup.d.ts","sourceRoot":"","sources":["../../../src/tests/playerGroup/PlayerGroup.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=groupCommands.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"groupCommands.d.ts","sourceRoot":"","sources":["../../../src/tests/playerGroup/groupCommands.ts"],"names":[],"mappings":""}