Skip to content

Commit 3d1b21f

Browse files
committed
Fix block states parser
1 parent 1920e97 commit 3d1b21f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/block_states.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ func ParseBlockStatesString(blockStatesString string, isLegacy bool) (result map
3737
continue
3838
}
3939

40-
key := strings.ReplaceAll(temp[0], `"`, "")
40+
key := strings.ReplaceAll(strings.TrimSpace(temp[0]), `"`, "")
4141
if len(temp[1]) < 1 {
4242
continue
4343
}
44-
value := temp[1]
44+
value := strings.TrimSpace(temp[1])
4545

4646
switch value[0] {
4747
case '"':

0 commit comments

Comments
 (0)