diff options
Diffstat (limited to 'codegen/genitemcomponents.py')
| -rw-r--r-- | codegen/genitemcomponents.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/codegen/genitemcomponents.py b/codegen/genitemcomponents.py index 32923e7e..73f03081 100644 --- a/codegen/genitemcomponents.py +++ b/codegen/genitemcomponents.py @@ -144,12 +144,12 @@ def add_variant(variant: str): raise ValueError('Couldn\'t find end of match') code = code[:last_line_in_match] + [ - f' DataComponentKind::{variant} => Box::new({variant}::read_from(buf)?),', + f' DataComponentKind::{variant} => Box::new({variant}::azalea_read(buf)?),', ] + code[last_line_in_match:] # now insert the struct code.append('') - code.append('#[derive(Clone, PartialEq, McBuf)]') + code.append('#[derive(Clone, PartialEq, AzBuf)]') code.append(f'pub struct {variant} {{') code.append(' pub todo: todo!(), // see DataComponents.java') code.append('}') |
