Skip to content

Commit

Permalink
Small changes (GeyserMC#2169)
Browse files Browse the repository at this point in the history
  • Loading branch information
basaigh authored Apr 26, 2021
1 parent 9b39aff commit 9de0ebd
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,8 @@

public class OffhandCommand extends GeyserCommand {

private final GeyserConnector connector;

public OffhandCommand(GeyserConnector connector, String name, String description, String permission) {
super(name, description, permission);

this.connector = connector;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public BootstrapDumpInfo() {

@Getter
@AllArgsConstructor
public class PluginInfo {
public static class PluginInfo {

public boolean enabled;
public String name;
Expand All @@ -54,7 +54,7 @@ public class PluginInfo {

@Getter
@AllArgsConstructor
public class ListenerInfo {
public static class ListenerInfo {

public String ip;
public int port;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public DumpInfo() {
}

@Getter
public class VersionInfo {
public static class VersionInfo {

private final String name;
private final String version;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,6 @@ private static int getPaletteHeader(BitArrayVersion version, boolean runtime) {
return (version.getId() << 1) | (runtime ? 1 : 0);
}

private static BitArrayVersion getVersionFromHeader(byte header) {
return BitArrayVersion.get(header >> 1, true);
}

public int getFullBlock(int index) {
return this.palette.getInt(this.bitArray.get(index));
}
Expand Down

0 comments on commit 9de0ebd

Please sign in to comment.