CraftBook 3

CraftBook 3

139k Downloads

Console spamming 'Could not pass InteractBlockEvent$Secondary$Impl' message.

LadyCailinBot opened this issue ยท 2 comments

commented

CRAFTBOOK-3185 - Reported by mystikite

install:
spongevanilla-1.8.9-4.1.0-BETA-293.jar
worldedit-spongevanilla-mc1.8.9-6.1.1-dist.jar
CraftBook-4.0-SNAPSHOT.jar

I currently only have Ammeter, Elevator and Lightstone enabled.
On initial startup there is no problem, but after awhile of running, the following messages start spamming the console:

[16:37:15 ERROR] [Sponge]: Could not pass InteractBlockEvent$Secondary$Impl to Plugin{id=com.sk89q.craftbook, name=CraftBook, version=4.0, source=mods/CraftBook-4.0-SNAPSHOT.jar}
java.util.NoSuchElementException: No value present
at java.util.Optional.get(Optional.java:135) ~[?:1.8.0_77]
at com.sk89q.craftbook.sponge.mechanics.LightStone.onPlayerInteract(LightStone.java:66) ~[LightStone.class:?]
at org.spongepowered.common.event.listener.SecondaryListener_LightStone_onPlayerInteract86.handle(Unknown Source) ~[?:?]
at org.spongepowered.common.event.RegisteredListener.handle(RegisteredListener.java:86) ~[RegisteredListener.class:1.8.9-4.1.0-BETA-293]
at org.spongepowered.common.event.SpongeEventManager.post(SpongeEventManager.java:258) [SpongeEventManager.class:1.8.9-4.1.0-BETA-293]
at org.spongepowered.common.event.SpongeEventManager.post(SpongeEventManager.java:269) [SpongeEventManager.class:1.8.9-4.1.0-BETA-293]
at org.spongepowered.common.SpongeImpl.postEvent(SpongeImpl.java:131) [SpongeImpl.class:1.8.9-4.1.0-BETA-293]
at org.spongepowered.common.event.SpongeCommonEventFactory.callInteractBlockEventSecondary(SpongeCommonEventFactory.java:606) [SpongeCommonEventFactory.class:1.8.9-4.1.0-BETA-293]
at org.spongepowered.common.event.SpongeCommonEventFactory.callInteractBlockEventSecondary(SpongeCommonEventFactory.java:601) [SpongeCommonEventFactory.class:1.8.9-4.1.0-BETA-293]
at net.minecraft.network.NetHandlerPlayServer.func_147346_a(SourceFile:521) [lm.class:?]
at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.func_148833_a(SourceFile:59) [ja.class:?]
at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.func_148833_a(SourceFile:10) [ja.class:?]
at org.spongepowered.common.network.PacketUtil.onProcessPacket(PacketUtil.java:106) [PacketUtil.class:1.8.9-4.1.0-BETA-293]
at net.minecraft.network.PacketThreadUtil$1.redirect$onProcessPacket$0(SourceFile:51) [fh$1.class:?]
at net.minecraft.network.PacketThreadUtil$1.run(SourceFile:13) [fh$1.class:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_77]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_77]
at net.minecraft.util.Util.func_181617_a(SourceFile:44) [g.class:?]
at net.minecraft.server.MinecraftServer.func_71190_q(SourceFile:143) [MinecraftServer.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(SourceFile:299) [ko.class:?]
at net.minecraft.server.MinecraftServer.func_71217_p(SourceFile:535) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.run(SourceFile:451) [MinecraftServer.class:?]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_77]
[16:37:15 ERROR] [Sponge]: Could not pass InteractBlockEvent$Secondary$Impl to Plugin{id=com.sk89q.craftbook, name=CraftBook, version=4.0, source=mods/CraftBook-4.0-SNAPSHOT.jar}
java.util.NoSuchElementException: No value present
at java.util.Optional.get(Optional.java:135) ~[?:1.8.0_77]
at com.sk89q.craftbook.sponge.mechanics.Ammeter.onPlayerInteract(Ammeter.java:68) ~[Ammeter.class:?]
at org.spongepowered.common.event.listener.SecondaryListener_Ammeter_onPlayerInteract87.handle(Unknown Source) ~[?:?]
at org.spongepowered.common.event.RegisteredListener.handle(RegisteredListener.java:86) ~[RegisteredListener.class:1.8.9-4.1.0-BETA-293]
at org.spongepowered.common.event.SpongeEventManager.post(SpongeEventManager.java:258) [SpongeEventManager.class:1.8.9-4.1.0-BETA-293]
at org.spongepowered.common.event.SpongeEventManager.post(SpongeEventManager.java:269) [SpongeEventManager.class:1.8.9-4.1.0-BETA-293]
at org.spongepowered.common.SpongeImpl.postEvent(SpongeImpl.java:131) [SpongeImpl.class:1.8.9-4.1.0-BETA-293]
at org.spongepowered.common.event.SpongeCommonEventFactory.callInteractBlockEventSecondary(SpongeCommonEventFactory.java:606) [SpongeCommonEventFactory.class:1.8.9-4.1.0-BETA-293]
at org.spongepowered.common.event.SpongeCommonEventFactory.callInteractBlockEventSecondary(SpongeCommonEventFactory.java:601) [SpongeCommonEventFactory.class:1.8.9-4.1.0-BETA-293]
at net.minecraft.network.NetHandlerPlayServer.func_147346_a(SourceFile:521) [lm.class:?]
at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.func_148833_a(SourceFile:59) [ja.class:?]
at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.func_148833_a(SourceFile:10) [ja.class:?]
at org.spongepowered.common.network.PacketUtil.onProcessPacket(PacketUtil.java:106) [PacketUtil.class:1.8.9-4.1.0-BETA-293]
at net.minecraft.network.PacketThreadUtil$1.redirect$onProcessPacket$0(SourceFile:51) [fh$1.class:?]
at net.minecraft.network.PacketThreadUtil$1.run(SourceFile:13) [fh$1.class:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_77]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_77]
at net.minecraft.util.Util.func_181617_a(SourceFile:44) [g.class:?]
at net.minecraft.server.MinecraftServer.func_71190_q(SourceFile:143) [MinecraftServer.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(SourceFile:299) [ko.class:?]
at net.minecraft.server.MinecraftServer.func_71217_p(SourceFile:535) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.run(SourceFile:451) [MinecraftServer.class:?]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_77]

commented

Comment by mystikite

More info..
This appears to be happening when a player right clicks.

commented

Comment by me4502

What build of CraftBook is this? It doesn't appear to be possible on the latest

Edit: Nvm, only LightStone had that issue - fixed now.