Create world on server with generate-structures=false.
Throw eye of ender
[12:12:42] [Server thread/INFO]: md_5[/127.0.0.1:52310] logged in with entity id 1087 at (-69.5, 68.0, 312.5)
[12:12:42] [Server thread/INFO]: md_5 joined the game
[12:12:52] [Server thread/INFO]: [md_5: Given [Eye of Ender] * 1 to md_5]
[12:12:53] [Server thread/FATAL]: Error executing task
java.util.concurrent.ExecutionException: java.lang.NullPointerException
at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_91]
at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_91]
at h.a(SourceFile:46) [minecraft_server.1.9.4.jar:?]
at net.minecraft.server.MinecraftServer.D(SourceFile:598) [minecraft_server.1.9.4.jar:?]
at lb.D(SourceFile:340) [minecraft_server.1.9.4.jar:?]
at net.minecraft.server.MinecraftServer.C(SourceFile:554) [minecraft_server.1.9.4.jar:?]
at net.minecraft.server.MinecraftServer.run(SourceFile:458) [minecraft_server.1.9.4.jar:?]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_91]
Caused by: java.lang.NullPointerException
at awd.a(SourceFile:234) ~[minecraft_server.1.9.4.jar:?]
at awb.c(SourceFile:96) ~[minecraft_server.1.9.4.jar:?]
at awb.a(SourceFile:58) ~[minecraft_server.1.9.4.jar:?]
at atn.a(SourceFile:526) ~[minecraft_server.1.9.4.jar:?]
at lp.a(SourceFile:223) ~[minecraft_server.1.9.4.jar:?]
at adb.a(SourceFile:82) ~[minecraft_server.1.9.4.jar:?]
at adq.a(SourceFile:146) ~[minecraft_server.1.9.4.jar:?]
at lt.a(SourceFile:270) ~[minecraft_server.1.9.4.jar:?]
at mc.a(SourceFile:664) ~[minecraft_server.1.9.4.jar:?]
at ji.a(SourceFile:32) ~[minecraft_server.1.9.4.jar:?]
at ji.a(SourceFile:9) ~[minecraft_server.1.9.4.jar:?]
at fj$1.run(SourceFile:13) ~[minecraft_server.1.9.4.jar:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_91]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_91]
at h.a(SourceFile:45) ~[minecraft_server.1.9.4.jar:?]
... 5 moreCode analysis by @unknown can be found in this comment.
Comments 7
@unknown you can't, but it'll throw this error, that's what the report is about, I don't see the error myself tho.
@unknown, @unknown is a "honorary mod" to quote @unknown, hench why his name is green.
Please link to this comment in the description
The following is based on a decompiled version of Minecraft 1.9 using MCP 9.24 beta.
The reason for this is that the field net.minecraft.world.gen.MapGenBase.worldObj is null if the Stronghold was not generated. This could be solved by having the method net.minecraft.world.gen.ChunkProviderOverworld.getStrongholdGen(World, String, BlockPos) return null. Either by not initializing the field net.minecraft.world.gen.ChunkProviderOverworld.strongholdGenerator if no structures should be generated or by returning null if no structures should be generated (!(this.mapFeaturesEnabled && this.settings.useStrongholds)).
Confirmed. Eye of Ender cannot be thrown.
1.9.4 log