From 59e12c0655c41e8f2a68446f15ecdfcb36d51d06 Mon Sep 17 00:00:00 2001 From: Holly Date: Mon, 26 Jun 2023 09:57:40 +0100 Subject: [PATCH] fix a bunch more codefactor issues --- .github/workflows/node.js.yml | 1 - package.json | 1 - server/containers/Container.ts | 1 - server/entities/Item.ts | 7 +++++++ server/queuedUpdateTypes/BlockUpdate.ts | 1 - 5 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 59969f2..0928eff 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -29,6 +29,5 @@ jobs: - run: npm ci # Don't run updateCheck for now #- run: npm run dev:updateCheck - - run: npm run initSubmodules - run: npm run build #- run: npm test diff --git a/package.json b/package.json index d958bc0..ed731af 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,6 @@ "scripts": { "dev:updateCheck": "check-outdated", "dev:run": "nodemon --watch './**/*.ts' index.ts", - "initSubmodules": "git submodule update --init --recursive", "pack": "webpack", "build": "tsc --build", "_clean": "tsc --build --clean" diff --git a/server/containers/Container.ts b/server/containers/Container.ts index ed28e3f..cd7d420 100644 --- a/server/containers/Container.ts +++ b/server/containers/Container.ts @@ -1,4 +1,3 @@ -import { FunkyArray } from "../../funkyArray"; import { ItemStack } from "./ItemStack"; import { ContainerSlot } from "./Slot"; diff --git a/server/entities/Item.ts b/server/entities/Item.ts index 6b3567b..e8a2334 100644 --- a/server/entities/Item.ts +++ b/server/entities/Item.ts @@ -4,9 +4,16 @@ import { Entity } from "./Entity"; export class EntityItem extends Entity { public age:number; + public itemStack:ItemStack; public constructor(world:World, x:number, y:number, z:number, itemStack:ItemStack) { super(world); + this.x = x; + this.y = y; + this.z = z; + + this.itemStack = itemStack; + this.age = 0; this.health = 5; } diff --git a/server/queuedUpdateTypes/BlockUpdate.ts b/server/queuedUpdateTypes/BlockUpdate.ts index 9343595..96e4e7d 100644 --- a/server/queuedUpdateTypes/BlockUpdate.ts +++ b/server/queuedUpdateTypes/BlockUpdate.ts @@ -1,4 +1,3 @@ -import { Chunk } from "../Chunk"; import { IQueuedUpdate } from "./IQueuedUpdate"; export class QueuedBlockUpdate implements IQueuedUpdate {