Skip to content

Commit

Permalink
remove Side argument from server constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
jumpingpxl committed Jun 18, 2024
1 parent 6e17a4f commit 8de69f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,11 @@
public class LabyModProtocolService extends AbstractServerLabyModProtocolService<LabyModPlayer> {

private static final LabyModProtocolService INSTANCE = new LabyModProtocolService();
private ProtocolPlatformLogger logger;
private ProtocolPlatformLogger logger = NoOpProtocolPlatformLogger.get();
private JavaPlugin plugin;

private LabyModProtocolService() {
super(Side.SERVER);
this.logger = NoOpProtocolPlatformLogger.get();
// singleton
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,9 @@ public abstract class AbstractServerLabyModProtocolService<T extends AbstractLab

/**
* Creates a new labymod protocol service.
*
* @param side the side the protocol service is running on. {@link Side#CLIENT} for client-side
* and {@link Side#SERVER} for server-side
*/
protected AbstractServerLabyModProtocolService(@NotNull Side side) {
super(side);
protected AbstractServerLabyModProtocolService() {
super(Side.SERVER);
this.players = new HashMap<>();
}

Expand Down

0 comments on commit 8de69f9

Please sign in to comment.