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 - run: npm ci
# Don't run updateCheck for now # Don't run updateCheck for now
#- run: npm run dev:updateCheck #- run: npm run dev:updateCheck
- run: npm run initSubmodules
- run: npm run build - run: npm run build
#- run: npm test #- run: npm test

View file

@ -6,7 +6,6 @@
"scripts": { "scripts": {
"dev:updateCheck": "check-outdated", "dev:updateCheck": "check-outdated",
"dev:run": "nodemon --watch './**/*.ts' index.ts", "dev:run": "nodemon --watch './**/*.ts' index.ts",
"initSubmodules": "git submodule update --init --recursive",
"pack": "webpack", "pack": "webpack",
"build": "tsc --build", "build": "tsc --build",
"_clean": "tsc --build --clean" "_clean": "tsc --build --clean"

View file

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

View file

@ -4,9 +4,16 @@ import { Entity } from "./Entity";
export class EntityItem extends Entity { export class EntityItem extends Entity {
public age:number; public age:number;
public itemStack:ItemStack;
public constructor(world:World, x:number, y:number, z:number, itemStack:ItemStack) { public constructor(world:World, x:number, y:number, z:number, itemStack:ItemStack) {
super(world); super(world);
this.x = x;
this.y = y;
this.z = z;
this.itemStack = itemStack;
this.age = 0; this.age = 0;
this.health = 5; this.health = 5;
} }

View file

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