fix a bunch more codefactor issues

This commit is contained in:
Holly Stubbs 2023-06-26 09:57:40 +01:00
parent 21a9f64a9e
commit 59e12c0655
5 changed files with 7 additions and 4 deletions

View File

@ -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

View File

@ -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"

View File

@ -1,4 +1,3 @@
import { FunkyArray } from "../../funkyArray";
import { ItemStack } from "./ItemStack";
import { ContainerSlot } from "./Slot";

View File

@ -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;
}

View File

@ -1,4 +1,3 @@
import { Chunk } from "../Chunk";
import { IQueuedUpdate } from "./IQueuedUpdate";
export class QueuedBlockUpdate implements IQueuedUpdate {