mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-17 16:15:32 +01:00
Fix build
This commit is contained in:
parent
55fa083adf
commit
b07e912063
@ -5,7 +5,6 @@ import net.minestom.server.MinecraftServer;
|
||||
import net.minestom.server.coordinate.Pos;
|
||||
import net.minestom.server.entity.Entity;
|
||||
import net.minestom.server.entity.EntityType;
|
||||
import net.minestom.server.entity.GameMode;
|
||||
import net.minestom.server.entity.metadata.other.ItemFrameMeta;
|
||||
import net.minestom.server.instance.Instance;
|
||||
import net.minestom.server.instance.InstanceManager;
|
||||
@ -34,10 +33,6 @@ public class Demo {
|
||||
}
|
||||
|
||||
private static void initDemo() {
|
||||
MinecraftServer.getConnectionManager().addPlayerInitialization(player -> {
|
||||
player.setGameMode(GameMode.CREATIVE);
|
||||
});
|
||||
|
||||
InstanceManager instances = MinecraftServer.getInstanceManager();
|
||||
Instance instance = instances.getInstances().stream().findAny().get();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user