Skip to content
This repository was archived by the owner on Jun 7, 2022. It is now read-only.

Commit 09228fa

Browse files
McRubenGiantTreeLP
authored andcommitted
Set instance of CloudServer in the bukkit plugin before connecting to the Cloud (that should fix the bug with the NullPointerException on receiving the SignSelector or MobSelector packet)
1 parent 68b619e commit 09228fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cloudnet-api/cloudnet-api-bridge/src/main/java/de/dytanic/cloudnet/bridge/BukkitBootstrap.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ public void onLoad()
4444
@Override
4545
public void onEnable()
4646
{
47+
new CloudServer(this, CloudAPI.getInstance());
48+
4749
CloudAPI.getInstance().bootstrap();
4850
checkRegistryAccess();
4951

@@ -56,7 +58,6 @@ public void onEnable()
5658
{
5759
}
5860

59-
new CloudServer(this, CloudAPI.getInstance());
6061
getServer().getPluginManager().registerEvents(new BukkitListener(), this);
6162

6263
CloudServer.getInstance().registerCommand(new CommandResource());

0 commit comments

Comments
 (0)