Skip to content

Commit

Permalink
use super name
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Castle <[email protected]>
  • Loading branch information
Kas-tle committed Aug 21, 2023
1 parent 0c90a82 commit ea42fdc
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@

public class GeyserNonVanillaCustomBlockData extends GeyserCustomBlockData implements NonVanillaCustomBlockData {
private final String namespace;
private final String name;

GeyserNonVanillaCustomBlockData(NonVanillaCustomBlockDataBuilder builder) {
super(builder);
Expand All @@ -45,12 +44,11 @@ public class GeyserNonVanillaCustomBlockData extends GeyserCustomBlockData imple
if (namespace == null) {
throw new IllegalStateException("Identifier must be set");
}
this.name = builder.name;
}

@Override
public @NonNull String identifier() {
return this.namespace + ":" + this.name;
return this.namespace + ":" + super.name();
}

@Override
Expand All @@ -60,7 +58,6 @@ public class GeyserNonVanillaCustomBlockData extends GeyserCustomBlockData imple

public static class NonVanillaCustomBlockDataBuilder extends CustomBlockDataBuilder implements NonVanillaCustomBlockData.Builder {
private String namespace;
private String name;

@Override
public NonVanillaCustomBlockDataBuilder namespace(@NonNull String namespace) {
Expand All @@ -70,8 +67,7 @@ public NonVanillaCustomBlockDataBuilder namespace(@NonNull String namespace) {

@Override
public NonVanillaCustomBlockDataBuilder name(@NonNull String name) {
this.name = name;
return this;
return (NonVanillaCustomBlockDataBuilder) super.name(name);
}

@Override
Expand Down

0 comments on commit ea42fdc

Please sign in to comment.