Skip to content

Commit

Permalink
add eaglercraft as alternative, fix types again
Browse files Browse the repository at this point in the history
zardoy committed Sep 3, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 684261e commit 9e7711e
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.MD
Original file line number Diff line number Diff line change
@@ -188,3 +188,4 @@ General:
### Alternatives

- [https://github.com/ClassiCube/ClassiCube](ClassiCube - Better C# Rewrite) [DEMO](https://www.classicube.net/server/play/?warned=true)
- [https://m.eaglercraft.com/](EaglerCraft) - Eaglercraft runnable on mobile (real Minecraft in the browser)
2 changes: 1 addition & 1 deletion prismarine-viewer/viewer/lib/mesher/models.ts
Original file line number Diff line number Diff line change
@@ -410,7 +410,7 @@ export function getSectionGeometry (sx, sy, sz, world: World) {
tiles: {},
// todo this can be removed here
signs: {},
isFull: true,
// isFull: true,
highestBlocks: {},
hadErrors: false
}
2 changes: 1 addition & 1 deletion prismarine-viewer/viewer/lib/mesher/shared.ts
Original file line number Diff line number Diff line change
@@ -29,7 +29,7 @@ export type MesherGeometryOutput = {
indices: number[],
tiles: Record<string, BlockType>,
signs: Record<string, any>,
isFull: boolean
// isFull: boolean
highestBlocks: Record<string, { y: number, name: string }>
hadErrors: boolean
}
2 changes: 1 addition & 1 deletion prismarine-viewer/viewer/lib/mesher/test/mesherTester.ts
Original file line number Diff line number Diff line change
@@ -41,7 +41,7 @@ export const setup = (version, initialBlocks: Array<[number[], string]>) => {
reload()

const getLights = () => {
return Object.fromEntries(getGeometry().faces.map(({ face, light }) => ([face, light * 15 - 2])))
return Object.fromEntries(getGeometry().faces.map(({ face, light }) => ([face, (light ?? 0) * 15 - 2])))
}

const setLight = (x: number, y: number, z: number, val = 0) => {

0 comments on commit 9e7711e

Please sign in to comment.