[1.18.2]The Melon Backpack's harvest cd decreases failed after enabling the ability.
LitnhJacuzzi opened this issue ยท 1 comments
As the title said, if you put the melon backpack on the ground, trigger its ability to enabled, destroy it and place it again to check the harvest cd, you'll find the time is freezed at the initial value.
The reason has been found, which is described as "tick update invalid", caused by method TravelersBackpackBlockEntity::tick cannot be invoked when necessary.
The root was located in class TravelersBackpackBlock, method getTicker(...). It's turned out to be a logic mistake, and the solution is as follows:
Add "!" judgement before level.isClientSide and TravelersBackpackConfig.enableBackpackAbilities.