huge performance improvements
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { Vector } from "../lib/Vector";
|
||||
import { world } from "@minecraft/server";
|
||||
|
||||
export class InstanceOptions {
|
||||
instanceName = void 0;
|
||||
@@ -13,6 +14,11 @@ export class InstanceOptions {
|
||||
intervalOrLifetime: 10
|
||||
};
|
||||
|
||||
static getInstanceStrucetureId(instanceName) {
|
||||
const options = new InstanceOptions(instanceName, void 0);
|
||||
return options.structureId;
|
||||
}
|
||||
|
||||
constructor(instanceName, structureId) {
|
||||
this.instanceName = instanceName;
|
||||
this.structureId = structureId;
|
||||
@@ -43,7 +49,7 @@ export class InstanceOptions {
|
||||
}
|
||||
|
||||
getDimension() {
|
||||
return world.getDimension(this.options.dimensionId);
|
||||
return world.getDimension(this.dimensionId);
|
||||
}
|
||||
|
||||
enable() {
|
||||
|
||||
Reference in New Issue
Block a user