
Mods / Berry Bush Fixes - Fixed in Vanilla 1.20-rc.4!
Author: pizza2004
Side: Both
Created: Sep 20th 2024 at 1:33 AM
Last modified: Oct 31st 2024 at 1:14 AM
Downloads: 1791
Follow Unfollow 50
Latest release (for outdated Vintage Story v1.20.0-pre):
berrybushfixes_1.1.2.zip
1-click install
Fix included in vanilla 1.20-rc.4 and newer by default!
This ever so slightly modifies the code so that when Raccoons harvest berries from the bushes the timer will properly reset and so that when you harvest berries it will not reset whether or not they have been pruned/clipped.
If you are playing with Herbarium and Wildcraft: Fruits and Nuts it will fix both of those bugs as well as a bug in Herbarium that meant that Black Nightshade would not drop any berries when raccoons attempted to steal them.
Note: If you install Herbarium but not Wildcraft: Fruits and Nuts your berry bushes will grow their branches back after 3 months instead of a year but they will otherwise be vanilla, there wasn't an easy way to stop this from happening. It will fix itself with versions of Herbarium newer than 1.3.0.
Version | For Game version | Downloads | Release date | Changelog | Download | 1-click mod install* |
---|---|---|---|---|---|---|
v1.1.2 | 1087 | Oct 31st 2024 at 1:14 AM | Show | berrybushfixes_1.1.2.zip | 1-click install | |
v1.1.1 | 469 | Oct 15th 2024 at 4:26 AM | Show | berrybushfixes_1.1.1.zip | 1-click install | |
v1.1.0 | 59 | Oct 15th 2024 at 3:26 AM | Show | berrybushfixes_1.1.0.zip | 1-click install | |
v1.0.0 | 176 | Sep 20th 2024 at 1:34 AM | Show | berrybushfixes_1.0.0.zip | 1-click install |
The bug where they are pruned seems to be back in the stable release. Will this fix it?
<3
Thank you!
melodelic This mod is not compatible with version 1.20.0-rc.4 or higher as the bug has been fixed in vanilla now. You do not need this mod anymore.
Just got the following error while trying to pick berries from a berry bush:
Running on 64 bit Windows 10.0.26100.0 with 16204 MB RAM
Game Version: v1.20.0-rc.6 (Unstable)
12/28/2024 11:35:16 AM: Critical error occurred in the following mod: berrybushfixes@1.1.2
Loaded Mods: bettercrates@1.8.0-rc.4, bettertraders@0.0.9, buzzwords@1.7.0, claycasting@1.2.2, combatoverhaul@0.0.104, TA_fieldsandplateaus@1.0.5, longtermfood@0.1.2, nailsmold@1.0.2, TA_plainsandvalleys@1.0.8, game@1.20.0-rc.6, vsimgui@1.1.7, egocaribautomapmarkers@4.0.0, berrybushfixes@1.1.2, betterfirepit@1.1.4, betterruins@0.4.3, carryon@1.8.0-pre.1, colorfulcandles@1.1.0, commonlib@2.6.1, configlib@1.3.17, hudclockpatch@1.0.0, justanarrowheadmold@1.0.1, maltiezcrossbows@0.5.11, rivers@4.0.0, scarecrow@1.6.1, th3dungeon@0.3.1, creative@1.20.0-rc.6, survival@1.20.0-rc.6, wildgrass@1.1.3, xlibpatch@1.0.1, stonequarry@3.4.2, xskillspatch@1.0.4
Involved Harmony IDs: berrybushfixes
System.MissingFieldException: Field not found: 'Vintagestory.GameContent.BlockBehaviorHarvestable.harvestedStack'.
at berrybushfixes.BerryBushFixes.PatchHarvestable(BlockBehaviorHarvestable __instance, Single secondsUsed, IWorldAccessor world, IPlayer byPlayer, BlockSelection blockSel, EnumHandling& handled)
at Vintagestory.GameContent.BlockBehaviorHarvestable.OnBlockInteractStop_Patch1(BlockBehaviorHarvestable this, Single secondsUsed, IWorldAccessor world, IPlayer byPlayer, BlockSelection blockSel, EnumHandling& handled)
at Vintagestory.API.Common.Block.OnBlockInteractStop(Single secondsUsed, IWorldAccessor world, IPlayer byPlayer, BlockSelection blockSel) in VintagestoryApi\Common\Collectible\Block\Block.cs:line 1477
at Vintagestory.Client.NoObf.SystemMouseInWorldInteractions.HandleHandInteraction(Single dt) in VintagestoryLib\Client\Systems\Player\MouseInWorldInteractions.cs:line 236
at Vintagestory.Client.NoObf.SystemMouseInWorldInteractions.OnGameTick(Single dt) in VintagestoryLib\Client\Systems\Player\MouseInWorldInteractions.cs:line 113
at Vintagestory.Common.GameTickListener.OnTriggered(Int64 ellapsedMilliseconds) in VintagestoryLib\Common\Model\GameTickListener.cs:line 27
at Vintagestory.Common.EventManager.TriggerGameTick(Int64 ellapsedMilliseconds, IWorldAccessor world) in VintagestoryLib\Common\EventManager.cs:line 57
at Vintagestory.Client.NoObf.ClientMain.MainRenderLoop(Single dt) in VintagestoryLib\Client\ClientMain.cs:line 825
at Vintagestory.Client.GuiScreenRunningGame.RenderToPrimary(Single dt) in VintagestoryLib\Client\MainMenu\Screens\GuiScreenRunningGame.cs:line 161
at Vintagestory.Client.ScreenManager.Render(Single dt) in VintagestoryLib\Client\ScreenManager.cs:line 695
at Vintagestory.Client.ScreenManager.OnNewFrame(Single dt) in VintagestoryLib\Client\ScreenManager.cs:line 670
at Vintagestory.Client.NoObf.ClientPlatformWindows.window_RenderFrame(FrameEventArgs e) in VintagestoryLib\Client\ClientPlatform\GameWindow.cs:line 88
at OpenTK.Windowing.Desktop.GameWindow.Run()
at Vintagestory.Client.ClientProgram.Start(ClientProgramArgs args, String[] rawArgs) in VintagestoryLib\Client\ClientProgram.cs:line 334
at Vintagestory.Client.ClientProgram.<>c__DisplayClass10_0.<.ctor>b__1() in VintagestoryLib\Client\ClientProgram.cs:line 130
at Vintagestory.ClientNative.CrashReporter.Start(ThreadStart start) in VintagestoryLib\Client\ClientPlatform\ClientNative\CrashReporter.cs:line 93
Awesome, thank you!
gndrneutralnoun I have now updated it with Herbarium support, and I also realized that I could just patch the things that will be fixed in the next version of Herbarium as well, and just make it so it ignores those patches if you on a newer version than the current one, so this version I just uploaded should make this fix both the two original bugs and a third bug in Herbarium fully!
gndrneutralnoun Right now it's sort of like half useful with Herbarium. It will fix the bug with raccoons for some types of berries still, but it won't fix the bug with shearing for anything anymore. I have submitted some code changes to Herbarium that will fix the raccoon issue for the other types of bushes permanently, so that should be in the next release, and I will update this patch to fix the shearing issue with Herbarium bushes soon, but that will make it so that it takes a year before new clippings can be cut from berry bushes in Herbarium, which is something that should be fixed in the next version of Herbarium as well.
So is this incompatible or useless with Herbarium?
Cuddly_Khan From what I can tell because they changed the EntityClasses for even vanilla bushes in Herbarium the pruning fix would not work, but the raccoon fix would still work on maybe half of the bushes that inherit from the original vanilla class.
Wildcraft has a feature where you can take a clipping of berry bushes, which then also shears them I think(?). That would then also apply to that I suppose, as harvesting the berries would let you take a second clipping. This fix would make it so you'd have to wait an entire year to take more clippings from the same berry bush.
Cuddly_Khan Either you have to break the block and place it back down or wait a year. The code just has an internal timer that will regrow after 1 year the next time the plant cycles through a growth stage.
With this, how do bushes become unsheared again? I'm not sure if or what the default method of this is because I've always just harvested them to unshear them.