замена переменной INSTANCE на метод getInstance() в EventBusGetter
This commit is contained in:
@@ -64,7 +64,7 @@ public class NettyServer implements Server {
|
||||
public void start() throws StartServerException {
|
||||
log.info("Use protocol {}", StatusResponsePacket.NAME);
|
||||
|
||||
EventBusGetter.INSTANCE.register(new PlayerEventListener());
|
||||
EventBusGetter.getInstance().register(new PlayerEventListener());
|
||||
|
||||
bossGroup = new NioEventLoopGroup(1);
|
||||
workerGroup = new NioEventLoopGroup(workerGroupCount);
|
||||
|
||||
@@ -140,7 +140,7 @@ public class LoginHandler extends AbstractStateHandler implements LoginStateHand
|
||||
CS_PlayerMoveEvent event = new CS_PlayerMoveEvent(player, player.getLocation());
|
||||
event.setNewLocation(player.getLocation());
|
||||
event.setRecalcChunk(true);
|
||||
EventBusGetter.INSTANCE.post(event);
|
||||
EventBusGetter.getInstance().post(event);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -85,7 +85,7 @@ public class PlayHandler extends AbstractStateHandler implements PlayStateHandle
|
||||
player.getLocation().getPitch(),
|
||||
player.getLocation().getWorld()
|
||||
));
|
||||
EventBusGetter.INSTANCE.post(event);
|
||||
EventBusGetter.getInstance().post(event);
|
||||
}
|
||||
|
||||
@Handler
|
||||
|
||||
Reference in New Issue
Block a user