mojira.dev
MC-101834

Error When Using Eye of Ender and generate-structures=false

  • 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 more

Code analysis by @unknown can be found in this comment.

Comments 7

Confirmed. Eye of Ender cannot be thrown.

1.9.4 log

[21:41:47] [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_74]
	at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_74]
	at h.a(SourceFile:46) [1.9.4.jar:?]
	at net.minecraft.server.MinecraftServer.D(SourceFile:598) [1.9.4.jar:?]
	at net.minecraft.server.MinecraftServer.C(SourceFile:554) [1.9.4.jar:?]
	at byl.C(SourceFile:155) [1.9.4.jar:?]
	at net.minecraft.server.MinecraftServer.run(SourceFile:458) [1.9.4.jar:?]
	at java.lang.Thread.run(Thread.java:745) [?:1.8.0_74]
Caused by: java.lang.NullPointerException
	at awd.a(SourceFile:234) ~[1.9.4.jar:?]
	at awb.c(SourceFile:96) ~[1.9.4.jar:?]
	at awb.a(SourceFile:58) ~[1.9.4.jar:?]
	at atn.a(SourceFile:526) ~[1.9.4.jar:?]
	at lp.a(SourceFile:223) ~[1.9.4.jar:?]
	at adb.a(SourceFile:82) ~[1.9.4.jar:?]
	at adq.a(SourceFile:146) ~[1.9.4.jar:?]
	at lt.a(SourceFile:270) ~[1.9.4.jar:?]
	at mc.a(SourceFile:664) ~[1.9.4.jar:?]
	at ji.a(SourceFile:32) ~[1.9.4.jar:?]
	at ji.a(SourceFile:9) ~[1.9.4.jar:?]
	at fj$1.run(SourceFile:13) ~[1.9.4.jar:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_74]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_74]
	at h.a(SourceFile:45) ~[1.9.4.jar:?]
	... 5 more

Ill try and see if this works and tell the mods if its a real 1 or not

I thought you can't even use Eye of Enders when "generate-structures" is set to false.

@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)).

Cannot reproduce in 1.11.2. Can someone else confirm if this is fixed?

Cannot reproduce in 1.11.2 either. The eye of ender cannot be thrown, but an error is not printed.

md_5

(Unassigned)

Confirmed

Minecraft 1.9.4, Minecraft 1.10.2, Minecraft 16w32a, Minecraft 16w32b

Minecraft 1.11.2

Retrieved