Botania

Botania

133M Downloads

Tinker's Mechworks drawbridges cannot place Botania flowers, places Botania Flowers instead.

MrJohz opened this issue ยท 1 comments

commented

I put about a stack of Munchdew into a basic TiM drawbridge, and attached a lever to the back of it. In front of the drawbridge there was a space where the plant could be placed (that is, an air block above a dirt block).

When switched on, the drawbridge placed a flower correctly, however this flower rendered as a vanilla poppy. When picked up, the poppy was named "Botania Flower", and had a tooltip telling me to report it to you. As a good person, I always do as told, so voila, bug report.

There were no logs printed that refer to this incident.

Further testing: When the Botania Flower is put into the drawbridge, the drawbridge places the Botania Flower. I'm not sure what I expected here. When an extended drawbridge is used, all the same results happen. The same is largely true of the advanced drawbridge, but then it crashed the game when the flower is withdrawn IFF there are more than one flowers. (I suspect this would happen with the other drawbridges if I tested further, but I suspect it's largely irrelevant to Botania, so I didn't test any further, mainly because the game crashed.) I would guess the bug comes from TiM assuming that the item it extends will be the same as the item it withdraws, and is therefore probably a TiM problem, but here's an abbreviated crash report anyway:

[14:56:08] [Client thread/FATAL]: Reported exception thrown!
net.minecraft.util.ReportedException: Ticking block entity
at net.minecraft.world.World.func_72939_s(World.java:1927) ~[ahb.class:?]
at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1995) ~[bao.class:?]
at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:962) ~[bao.class:?]
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:887) [bao.class:?]
at net.minecraft.client.main.Main.main(SourceFile:148) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_55]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_55]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_55]
at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_55]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_55]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_55]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_55]
at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_55]
at org.multimc.onesix.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:421) [NewLaunch.jar:?]
at org.multimc.onesix.OneSixLauncher.launch(OneSixLauncher.java:512) [NewLaunch.jar:?]
at org.multimc.EntryPoint.listen(EntryPoint.java:165) [NewLaunch.jar:?]
at org.multimc.EntryPoint.main(EntryPoint.java:54) [NewLaunch.jar:?]
Caused by: java.lang.ClassCastException: net.minecraft.client.multiplayer.WorldClient cannot be cast to net.minecraft.world.WorldServer
at tmechworks.lib.player.FakePlayerLogic.<init>(FakePlayerLogic.java:16) ~[FakePlayerLogic.class:?]
at tmechworks.blocks.logic.AdvancedDrawbridgeLogic.initFakePlayer(AdvancedDrawbridgeLogic.java:70) ~[AdvancedDrawbridgeLogic.class:?]
at tmechworks.blocks.logic.AdvancedDrawbridgeLogic.func_145845_h(AdvancedDrawbridgeLogic.java:340) ~[AdvancedDrawbridgeLogic.class:?]
at net.minecraft.world.World.func_72939_s(World.java:1912) ~[ahb.class:?]
... 18 more
---- Minecraft Crash Report ----
// Uh... Did I do that?

Time: 05/09/14 14:56
Description: Ticking block entity

java.lang.ClassCastException: net.minecraft.client.multiplayer.WorldClient cannot be cast to net.minecraft.world.WorldServer
at tmechworks.lib.player.FakePlayerLogic.<init>(FakePlayerLogic.java:16)
at tmechworks.blocks.logic.AdvancedDrawbridgeLogic.initFakePlayer(AdvancedDrawbridgeLogic.java:70)
at tmechworks.blocks.logic.AdvancedDrawbridgeLogic.func_145845_h(AdvancedDrawbridgeLogic.java:340)
at net.minecraft.world.World.func_72939_s(World.java:1912)
at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1995)
at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:962)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:887)
at net.minecraft.client.main.Main.main(SourceFile:148)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:134)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.multimc.onesix.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:421)
at org.multimc.onesix.OneSixLauncher.launch(OneSixLauncher.java:512)
at org.multimc.EntryPoint.listen(EntryPoint.java:165)
at org.multimc.EntryPoint.main(EntryPoint.java:54)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Stacktrace:
at tmechworks.lib.player.FakePlayerLogic.<init>(FakePlayerLogic.java:16)
at tmechworks.blocks.logic.AdvancedDrawbridgeLogic.initFakePlayer(AdvancedDrawbridgeLogic.java:70)
at tmechworks.blocks.logic.AdvancedDrawbridgeLogic.func_145845_h(AdvancedDrawbridgeLogic.java:340)

-- Block entity being ticked --
Details:
Name: AdvDrawbridge // tmechworks.blocks.logic.AdvancedDrawbridgeLogic
Block type: ID #1110 (tile.tmechworks.redstoneMachine // tmechworks.blocks.RedstoneMachine)
Block data value: 2 / 0x2 / 0b0010
Block location: World: (-777,68,-168), Chunk: (at 7,4,8 in -49,-11; contains blocks -784,0,-176 to -769,255,-161), Region: (-2,-1; contains chunks -64,-32 to -33,-1, blocks -1024,0,-512 to -513,255,-1)
Actual block type: ID #1110 (tile.tmechworks.redstoneMachine // tmechworks.blocks.RedstoneMachine)
Actual block data value: 2 / 0x2 / 0b0010
Stacktrace:
at net.minecraft.world.World.func_72939_s(World.java:1912)

-- Affected level --
Details:
Level name: MpServer
All players: 1 total; [EntityClientPlayerMP['<PROFILE NAME>'/165410, l='MpServer', x=-774.63, y=69.62, z=-166.56]]
Chunk stats: MultiplayerChunkCache: 224, 224
Level seed: 0
Level generator: ID 00 - default, ver 1. Features enabled: false
Level generator options:
Level spawn location: World: (-112,64,248), Chunk: (at 0,4,8 in -7,15; contains blocks -112,0,240 to -97,255,255), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
Level time: 178201 game time, 180525 day time
Level dimension: 0
Level storage version: 0x00000 - Unknown?
Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
Forced entities: 10 total; [EntitySkeleton['Skeleton'/176763, l='MpServer', x=-853.50, y=26.00, z=-97.50], EntityHat['unknown'/165702, l='MpServer', x=-774.63, y=69.62, z=-166.56], EntitySpider['Spider'/165703, l='MpServer', x=-43.37, y=-19.62, z=-27.44], EntityTrail['unknown'/165704, l='MpServer', x=-774.63, y=69.62, z=-166.56], EntitySpider['Spider'/172628, l='MpServer', x=-749.97, y=71.00, z=-177.84], EntityClientPlayerMP['<PROFILE NAME>'/165410, l='MpServer', x=-774.63, y=69.62, z=-166.56], EntityMinecartChest['entity.MinecartChest.name'/165429, l='MpServer', x=-720.50, y=39.50, z=-137.50], EntityMinecartChest['entity.MinecartChest.name'/165428, l='MpServer', x=-762.50, y=41.50, z=-168.50], EntityHat['unknown'/176784, l='MpServer', x=-853.50, y=26.00, z=-97.50], EntityItem['item.item.string'/176177, l='MpServer', x=-748.19, y=71.13, z=-175.56]]
Retry entities: 0 total; []
Server brand: fml,forge
Server type: Integrated singleplayer server
Stacktrace:
at net.minecraft.client.multiplayer.WorldClient.func_72914_a(WorldClient.java:373)
at net.minecraft.client.Minecraft.func_71396_d(Minecraft.java:2433)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:908)
at net.minecraft.client.main.Main.main(SourceFile:148)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:134)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.multimc.onesix.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:421)
at org.multimc.onesix.OneSixLauncher.launch(OneSixLauncher.java:512)
at org.multimc.EntryPoint.listen(EntryPoint.java:165)
at org.multimc.EntryPoint.main(EntryPoint.java:54)

(List of mods snipped for sanity, other important details may have accidentally been caught up in them, say if you need more information.)

I'm assuming I get a reward for this?

commented

I really can't do much about this. The flowers' TE data is set when placed, I guess the drawbridges don't call that. You'd need a fake player to call it though. :|