[1.21.2] Fix BlockData deserializion
Signed-off-by: Irmo van den Berge <irmo.vandenberge@ziggo.nl>
This commit is contained in:
1 parent
0eb0eacb15
commit
ecc609d616
1 file changed
+3
-1
+3
-1
@@ -32,8 +32,10 @@ class BlockDataSerializer_1_19 extends BlockDataSerializer {
|
||||
"public static IBlockData deserialize(String text) {\n" +
|
||||
" ArgumentBlock$a block;\n" +
|
||||
" try {\n" +
|
||||
"#if version >= 1.19.3\n" +
|
||||
"#if version >= 1.21.2n\n" +
|
||||
" block = ArgumentBlock.parseForBlock(BuiltInRegistries.BLOCK.asLookup(), text, true);\n" +
|
||||
"#elseif version >= 1.19.3\n" +
|
||||
" block = ArgumentBlock.parseForBlock(BuiltInRegistries.BLOCK, text, true);\n" +
|
||||
"#else\n" +
|
||||
" block = ArgumentBlock.parseForBlock((IRegistry) BuiltInRegistries.BLOCK, text, true);\n" +
|
||||
"#endif\n" +
|
||||
|
||||
Reference in new issue
Block a user