Skip to content

Commit

Permalink
Rename internal ping passthrough variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Camotoy committed May 26, 2020
1 parent 2dc755c commit af669f2
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public class GeyserSpigotPlugin extends JavaPlugin implements GeyserBootstrap {
private GeyserSpigotCommandManager geyserCommandManager;
private GeyserSpigotConfiguration geyserConfig;
private GeyserSpigotLogger geyserLogger;
private IGeyserPingPassthrough geyserBukkitPingPassthrough;
private IGeyserPingPassthrough geyserSpigotPingPassthrough;
private GeyserSpigotBlockPlaceListener blockPlaceListener;
private GeyserSpigotWorldManager geyserWorldManager;

Expand Down Expand Up @@ -81,9 +81,9 @@ public void onEnable() {
this.connector = GeyserConnector.start(PlatformType.SPIGOT, this);

if (geyserConfig.isLegacyPingPassthrough()) {
this.geyserBukkitPingPassthrough = GeyserLegacyPingPassthrough.init(connector);
this.geyserSpigotPingPassthrough = GeyserLegacyPingPassthrough.init(connector);
} else {
this.geyserBukkitPingPassthrough = new GeyserSpigotPingPassthrough(geyserLogger);
this.geyserSpigotPingPassthrough = new GeyserSpigotPingPassthrough(geyserLogger);
}

this.geyserCommandManager = new GeyserSpigotCommandManager(this, connector);
Expand Down Expand Up @@ -133,7 +133,7 @@ public CommandManager getGeyserCommandManager() {

@Override
public IGeyserPingPassthrough getGeyserPingPassthrough() {
return geyserBukkitPingPassthrough;
return geyserSpigotPingPassthrough;
}

@Override
Expand Down

0 comments on commit af669f2

Please sign in to comment.