Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Placing a decorated banner = Fatal error, FutureTask - optional get() #45

Closed
theboomer opened this issue May 24, 2015 · 2 comments
Closed
Labels
type: bug Something isn't working

Comments

@theboomer
Copy link

Upgraded to sponge dev 456 to confirm:

Solid color banners can be placed about just fine. Dye a banner, place it, and the banner does not appear, inventory is decreased to a red 0 in client (which can also go negative as placed more times). Block-update the area with a regular block or solid banner, and all the placed banners (including the ones below 0) appear in client. Other clients will see such blocks appear if they logout and log back in.

The server throws the following error when a dyed banner is placed, but not for solid colored banners:
[code]


[20:00:38] [Server thread/FATAL] [FML]: Exception caught executing FutureTask: java.util.concurrent.ExecutionException: java.lang.IllegalStateException: Optional.get() cannot be called on an absent value
java.util.concurrent.ExecutionException: java.lang.IllegalStateException: Optional.get() cannot be called on an absent value
        at java.util.concurrent.FutureTask.report(Unknown Source) ~[?:1.7.0_71]
        at java.util.concurrent.FutureTask.get(Unknown Source) ~[?:1.7.0_71]
        at net.minecraftforge.fml.common.FMLCommonHandler.callFuture(FMLCommonHandler.java:710) [FMLCommonHandler.class:?]
        at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:655) [MinecraftServer.class:?]
        at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:364) [po.class:?]
        at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:598) [MinecraftServer.class:?]
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:478) [MinecraftServer.class:?]
        at java.lang.Thread.run(Unknown Source) [?:1.7.0_71]
Caused by: java.lang.IllegalStateException: Optional.get() cannot be called on an absent value
        at com.google.common.base.Absent.get(Absent.java:47) ~[minecraft_server.1.8.jar:?]
        at net.minecraft.tileentity.TileEntityBanner.updatePatterns(SourceFile:87) ~[bci.class:?]
        at net.minecraft.tileentity.TileEntityBanner.onSetItemValues(SourceFile:65) ~[bci.class:?]
        at net.minecraft.tileentity.TileEntityBanner.func_175112_a(SourceFile:284) ~[bci.class:?]
        at net.minecraft.item.ItemBanner.func_180614_a(SourceFile:66) ~[ajs.class:?]
        at net.minecraftforge.common.ForgeHooks.onPlaceItemIntoWorld(ForgeHooks.java:568) ~[ForgeHooks.class:?]
        at net.minecraft.item.ItemStack.func_179546_a(ItemStack.java:132) ~[amj.class:?]
        at net.minecraft.server.management.ItemInWorldManager.func_180236_a(ItemInWorldManager.java:446) ~[qx.class:?]
        at net.minecraft.network.NetHandlerPlayServer.func_147346_a(NetHandlerPlayServer.java:595) ~[rj.class:?]
        at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.func_180769_a(SourceFile:59) ~[mx.class:?]
        at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.func_148833_a(SourceFile:10) ~[mx.class:?]
        at net.minecraft.network.PacketThreadUtil$1.run(SourceFile:13) ~[ih.class:?]
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) ~[?:1.7.0_71]
        at java.util.concurrent.FutureTask.run(Unknown Source) ~[?:1.7.0_71]
        at net.minecraftforge.fml.common.FMLCommonHandler.callFuture(FMLCommonHandler.java:709) ~[FMLCommonHandler.class:?]
        ... 5 more
[/code]

... 

Have tested only with a few dyed patterns, not exhaustively tested all types of banners, figured the error code would imply a general issue :)

@theboomer
Copy link
Author

Also, this was tested with JUST forge, and does not occur - it is a sponge thing

@Lunaphied Lunaphied added the type: bug Something isn't working label May 24, 2015
@Aaron1011
Copy link
Contributor

Fixed in e207347

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants