init player pos
@@ -67,11 +67,8 @@ public class EngineClient implements Engine {
private void setupContext() {
SimpleRegistryManager registryManager = new SimpleRegistryManager(
- ImmutableMap.<Class<?>, Registry<?>>builder()
- .put(Block.class, new SimpleIdentifiedRegistry<>())
- .put(Item.class, new SimpleIdentifiedRegistry<>())
- .build()
- );
+ ImmutableMap.<Class<?>, Registry<?>>builder().put(Block.class, new SimpleIdentifiedRegistry<>())
+ .put(Item.class, new SimpleIdentifiedRegistry<>()).build());
context = new GameContext(registryManager, new AsmEventBus());
actionManager = new ActionManagerImpl(context);
}
@@ -81,7 +78,6 @@ public class EngineClient implements Engine {
setupContext();
renderer = new RendererGlobal();
-
resourceManager = new ResourceManagerImpl();
resourceManager.addResourceSource(new ResourceSourceBuiltin());
@@ -110,8 +106,9 @@ public class EngineClient implements Engine {
}
world.addEntity(player);
- minecraftMod.postInit(context);
+ player.getPosition().set(1, 2, 1);
+ minecraftMod.postInit(context);
timer = new Timer();
timer.init();
