Skip to content

BlockOreberryBush::harvest FakePlayer issues with Thaumcraft interactions #18

@noobanidus

Description

@noobanidus

While it's a bit of a fuss to get the bushes working with Thaumcraft (IMC doesn't seem to be working properly, and I just resorted to manually adding "tile.oreberries.oreberry_bush3" to CropUtils.clickableCrops to get golems to properly interact with them instead of them just smashing them dramatically.

So, currently, both the Thaumcraft golem and the ExtraUtilities2 mechanical user function in the same way: the fake player triggers onBlockActivated, and eventually ItemHandlerHelper.giveItemToPlayer is called. It's not an issue with the mechanical user because the inventory of the FakePlayer is copied back into the mechanical user (or is linked, my Java isn't actually that comprehensive).

However, for the Thaumcraft golems, it's basically ignored. I've filed an issue on the Thaumcraft tracker (Azanor/thaumcraft-beta#1524) covering it, but after I noticed the comment on BlockOreberryBush.java:160 re: FakePlayers and dropping in 1.7.10, I thought I'd let you know one of the potential interaction issues.

However, I think this is actually an issue for Thaumcraft -- it should handle ItemHandlerHelper.giveItemToPlayer a little more gracefully.

The only other potentially related issue is that Thaumcraft checks canGrow to determine if the plant is ready to be harvested. If bonemealGrowthChance is set to the default of 0.0, this check will always fail and the plant will always be presumed to be "fully grown". I'm not sure whether this is an issue or not, but it was rather amusing to see golems flying around smashing all the bushes!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions