Minor code recommendations
This commit is contained in:
6 files changed
+18
-11
No files matched your search
@@ -39,7 +39,7 @@ public class BukkitScheduler extends AsyncScheduler {
|
||||
public BukkitScheduler(Plugin plugin, Logger logger) {
|
||||
super(logger, command -> Bukkit.getScheduler().runTaskAsynchronously(plugin, command));
|
||||
|
||||
syncExecutor = r -> Bukkit.getScheduler().runTask(plugin, r);
|
||||
syncExecutor = task -> Bukkit.getScheduler().runTask(plugin, task);
|
||||
}
|
||||
|
||||
public Executor getSyncExecutor() {
|
||||
|
||||
+1
-1
@@ -177,7 +177,7 @@ public class ProtocolLibListener extends PacketAdapter {
|
||||
ClientPublicKey clientPublicKey, byte[] expectedToken) {
|
||||
try {
|
||||
if (new MinecraftVersion(1, 19, 0).atOrAbove()
|
||||
&& !(new MinecraftVersion(1, 19, 3).atOrAbove())) {
|
||||
&& !new MinecraftVersion(1, 19, 3).atOrAbove()) {
|
||||
Either<byte[], ?> either = packet.getSpecificModifier(Either.class).read(0);
|
||||
if (clientPublicKey == null) {
|
||||
Optional<byte[]> left = either.left();
|
||||
|
||||
Reference in new issue
Block a user