Skip to content

Commit b48921e

Browse files
authored
fix typo (#49)
* fix typo * Update BlockColors.ts
1 parent c8ceff7 commit b48921e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/render/BlockColors.ts

+3-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ const spruce = Color.intToRgb(6396257)
66
const birch = Color.intToRgb(8431445)
77
const foliage = Color.intToRgb(4764952)
88
const water = Color.intToRgb(4159204)
9-
const attached_stem = Color.intToRgb(8431445)
109
const lily_pad = Color.intToRgb(2129968)
1110

1211
const redstone = (power: number): Color => {
@@ -18,7 +17,7 @@ const redstone = (power: number): Color => {
1817
}
1918

2019
const stem = (age: number): Color => {
21-
return [age / 8, 1 - age / 32, age * 64]
20+
return [age / 8, 1 - age / 32, age / 64]
2221
}
2322

2423
export const BlockColors: {
@@ -46,8 +45,8 @@ export const BlockColors: {
4645
water_cauldron: () => water,
4746
redstone_wire: (props) => redstone(parseInt(props['power'] ?? '0')),
4847
sugar_cane: () => grass,
49-
attached_melon_stem: () => attached_stem,
50-
attached_pumpkin_stem: () => attached_stem,
48+
attached_melon_stem: () => stem(7),
49+
attached_pumpkin_stem: () => stem(7),
5150
melon_stem: (props) => stem(parseInt(props['age'] ?? '0')),
5251
pumpkin_stem: (props) => stem(parseInt(props['age'] ?? '0')),
5352
lily_pad: () => lily_pad,

0 commit comments

Comments
 (0)