Implement native fluid-state JSON decoding and encoding
This commit is contained in:
@@ -103,7 +103,7 @@ impl<'a> BlockStateJsonCodec<'a> {
|
||||
}
|
||||
}
|
||||
|
||||
fn java_integer(text: &str) -> Option<i32> {
|
||||
pub(crate) fn java_integer(text: &str) -> Option<i32> {
|
||||
let (negative, text) = if let Some(text) = text.strip_prefix('-') {
|
||||
(true, text)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user