gomint / gomint

GoMint is a modern Minecraft Bedrock Edition server enabling you to make your visions come true
https://gomint.io/
Other
241 stars 31 forks source link

GoMint fails upon attempt converting/reading an world with Anvil format #478

Closed ghost closed 5 years ago

ghost commented 5 years ago

Describe the bug I loaded and pasted a schematic file to my void mc java world and then i put it on my gomint server as default world but it crash To Reproduce Steps to reproduce the behavior:

  1. Put a mc java world to gomint
  2. Use it as default world
  3. Start server
  4. See error

Expected behavior Should be able to load the mc java world no problem Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context

20:03:32.339 [main] INFO  io.gomint.server.GoMintServer - Initializing recipes...
20:03:32.342 [main] INFO  io.gomint.server.world.WorldManager - Attempting to load world 'world'
20:03:32.345 [main] INFO  io.gomint.server.world.WorldManager - Detected anvil world 'world', converting...
20:03:32.523 [main] ERROR io.gomint.server.Bootstrap - GoMint crashed:
 java.lang.NullPointerException: null
        at io.gomint.server.world.converter.anvil.BlockConverter.<init>(BlockConverter.java:23) ~[GoMint.jar:1.0.0-SNAPSHOT]
        at io.gomint.server.world.converter.anvil.AnvilConverter.<init>(AnvilConverter.java:129) ~[GoMint.jar:1.0.0-SNAPSHOT]
        at io.gomint.server.world.WorldManager.convertAndLoad(WorldManager.java:164) ~[GoMint.jar:1.0.0-SNAPSHOT]
        at io.gomint.server.world.WorldManager.loadWorld(WorldManager.java:140) ~[GoMint.jar:1.0.0-SNAPSHOT]
        at io.gomint.server.GoMintServer.startAfterRegistryInit(GoMintServer.java:386) ~[GoMint.jar:1.0.0-SNAPSHOT]
        at io.gomint.server.Bootstrap.main(Bootstrap.java:120) [GoMint.jar:1.0.0-SNAPSHOT]
GoMint>
Janmm14 commented 5 years ago

anvil world conversion

rdstonech commented 5 years ago

I have the same error when I tried to convert Anvil world (world is valid, I can open it on pmmp). It affects all my Anvil worlds.

OS: Windows 10

I can give a world, if it's needed

DelxHQ commented 5 years ago

@rdstonech PMMP isn't anvil, it uses its own custom version of anvil.

rdstonech commented 5 years ago

@DelxHQ This world created not by pmmp, it's created in Java Edition and have mca format. I said that the world is valid and you can enter it

geNAZt commented 5 years ago

Fixed in latest commit