Skip to content

Commit 9f7d386

Browse files
committed
more info in package
1 parent 6f101a8 commit 9f7d386

File tree

4 files changed

+25
-6
lines changed

4 files changed

+25
-6
lines changed

.github/FUNDING.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

package.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "web-minecraft",
33
"version": "1.0.0",
4+
"description": "Minecraft client written in Javascript",
45
"scripts": {
56
"start": "node index.js production",
67
"dev": "npm run prebuild && node index.js development",
@@ -16,6 +17,21 @@
1617
"pre-commit": "npm run lint:fix"
1718
}
1819
},
20+
"license": "MIT",
21+
"repository": {
22+
"type": "git",
23+
"url": "git://github.com/michaljaz/web-minecraft.git"
24+
},
25+
"funding": [
26+
{
27+
"type": "individual",
28+
"url": "https://pomagam.pl/web-minecraft"
29+
},
30+
{
31+
"type": "individual",
32+
"url": "https://ko-fi.com/webmc"
33+
}
34+
],
1935
"dependencies": {
2036
"@msgpack/msgpack": "^2.4.1",
2137
"@tweenjs/tween.js": "^18.6.4",

src/client/scripts/Setup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ async function Setup(game) {
7575
.add(game.params, "chunkdist", 0, 10, 1)
7676
.name("Render distance")
7777
.listen();
78-
gui.add(game, "speed", 1.3, 5).name("sprint speed").listen();
78+
gui.add(game, "speed", 1.3, 10).name("sprint speed").listen();
7979
chunkDist.onChange(function (val) {
8080
game.distanceBasedFog.farnear.x = (val - 1) * 16;
8181
game.distanceBasedFog.farnear.y = val * 16;

src/client/scripts/World/ChunkMesher.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,12 @@ const CustomRender = {
358358
pos[2] + z
359359
);
360360
if (block.name === "lava")
361-
if ((block.stateId & 0b001110) - 1 === 10) waterLevels.push(0);
362-
else waterLevels.push(((block.stateId & 0b001110) - 1) / 10);
361+
if ((block.stateId & 0b001110) - 1 === 10)
362+
waterLevels.push(0);
363+
else
364+
waterLevels.push(
365+
((block.stateId & 0b001110) - 1) / 10
366+
);
363367
else if (block.boundingBox === "block")
364368
waterLevels.push(10);
365369
else waterLevels.push(1);
@@ -1032,11 +1036,11 @@ class ChunkMesher {
10321036
} else if (
10331037
this.customRender[
10341038
this.chunkTerrain.getBlock(...pos).name
1035-
]
1039+
]
10361040
) {
10371041
this.customRender[
10381042
this.chunkTerrain.getBlock(...pos).name
1039-
](
1043+
](
10401044
t_positions,
10411045
t_normals,
10421046
t_uvs,

0 commit comments

Comments
 (0)