mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-20 07:02: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.coordinate.Pos;
|
||||||
import net.minestom.server.entity.Entity;
|
import net.minestom.server.entity.Entity;
|
||||||
import net.minestom.server.entity.EntityType;
|
import net.minestom.server.entity.EntityType;
|
||||||
import net.minestom.server.entity.GameMode;
|
|
||||||
import net.minestom.server.entity.metadata.other.ItemFrameMeta;
|
import net.minestom.server.entity.metadata.other.ItemFrameMeta;
|
||||||
import net.minestom.server.instance.Instance;
|
import net.minestom.server.instance.Instance;
|
||||||
import net.minestom.server.instance.InstanceManager;
|
import net.minestom.server.instance.InstanceManager;
|
||||||
@ -34,10 +33,6 @@ public class Demo {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static void initDemo() {
|
private static void initDemo() {
|
||||||
MinecraftServer.getConnectionManager().addPlayerInitialization(player -> {
|
|
||||||
player.setGameMode(GameMode.CREATIVE);
|
|
||||||
});
|
|
||||||
|
|
||||||
InstanceManager instances = MinecraftServer.getInstanceManager();
|
InstanceManager instances = MinecraftServer.getInstanceManager();
|
||||||
Instance instance = instances.getInstances().stream().findAny().get();
|
Instance instance = instances.getInstances().stream().findAny().get();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user