From 9de0ebdba7842eade71477736890304bbef9a21e Mon Sep 17 00:00:00 2001 From: D3ATHBRINGER13 <53559772+D3ATHBRINGER13@users.noreply.github.com> Date: Mon, 26 Apr 2021 18:16:13 +0000 Subject: [PATCH] Small changes (#2169) --- .../geysermc/connector/command/defaults/OffhandCommand.java | 4 ---- .../java/org/geysermc/connector/dump/BootstrapDumpInfo.java | 4 ++-- .../src/main/java/org/geysermc/connector/dump/DumpInfo.java | 2 +- .../network/translators/world/chunk/BlockStorage.java | 4 ---- 4 files changed, 3 insertions(+), 11 deletions(-) diff --git a/connector/src/main/java/org/geysermc/connector/command/defaults/OffhandCommand.java b/connector/src/main/java/org/geysermc/connector/command/defaults/OffhandCommand.java index 4d7d74045..fa7994c5d 100644 --- a/connector/src/main/java/org/geysermc/connector/command/defaults/OffhandCommand.java +++ b/connector/src/main/java/org/geysermc/connector/command/defaults/OffhandCommand.java @@ -36,12 +36,8 @@ import org.geysermc.connector.network.session.GeyserSession; 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 diff --git a/connector/src/main/java/org/geysermc/connector/dump/BootstrapDumpInfo.java b/connector/src/main/java/org/geysermc/connector/dump/BootstrapDumpInfo.java index 4f16de903..b26d117f9 100644 --- a/connector/src/main/java/org/geysermc/connector/dump/BootstrapDumpInfo.java +++ b/connector/src/main/java/org/geysermc/connector/dump/BootstrapDumpInfo.java @@ -43,7 +43,7 @@ public class BootstrapDumpInfo { @Getter @AllArgsConstructor - public class PluginInfo { + public static class PluginInfo { public boolean enabled; public String name; @@ -54,7 +54,7 @@ public class BootstrapDumpInfo { @Getter @AllArgsConstructor - public class ListenerInfo { + public static class ListenerInfo { public String ip; public int port; diff --git a/connector/src/main/java/org/geysermc/connector/dump/DumpInfo.java b/connector/src/main/java/org/geysermc/connector/dump/DumpInfo.java index 9af740d99..e0f0391d5 100644 --- a/connector/src/main/java/org/geysermc/connector/dump/DumpInfo.java +++ b/connector/src/main/java/org/geysermc/connector/dump/DumpInfo.java @@ -81,7 +81,7 @@ public class DumpInfo { } @Getter - public class VersionInfo { + public static class VersionInfo { private final String name; private final String version; diff --git a/connector/src/main/java/org/geysermc/connector/network/translators/world/chunk/BlockStorage.java b/connector/src/main/java/org/geysermc/connector/network/translators/world/chunk/BlockStorage.java index 672fa1a35..faf8d6dc8 100644 --- a/connector/src/main/java/org/geysermc/connector/network/translators/world/chunk/BlockStorage.java +++ b/connector/src/main/java/org/geysermc/connector/network/translators/world/chunk/BlockStorage.java @@ -62,10 +62,6 @@ public class BlockStorage { 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)); }