PrismarineJS / mineflayer

Create Minecraft bots with a powerful, stable, and high level JavaScript API.
https://prismarinejs.github.io/mineflayer/
MIT License
4.96k stars 904 forks source link

Raining state is wrong #1098

Closed mdashlw closed 4 years ago

mdashlw commented 4 years ago

It appears that reason codes for begin/end raining were changed from version to version:

Not sure if there are other versions with 1 begin, 2 end except 1.14. The issue is in rain plugin that hardcodes reasons to 1 begin and 2 end. I'm not PRing it because idk how to do version check properly

rom1504 commented 4 years ago

We have a feature.json file which specify behavior per version. You can then use bot.supportFeature('yourFlag') Boolean in the rain plugin. Would be great if you can PR a fix

On Mon, Jun 29, 2020, 08:33 mdashlw notifications@github.com wrote:

It appears that reason codes for begin/end raining were changed from version to version:

Not sure if there are other versions with 1 begin, 2 end except 1.14. The issue is in rain plugin https://github.com/PrismarineJS/mineflayer/blob/master/lib/plugins/rain.js that hardcodes reasons to 1 begin and 2 end. I'm not PRing it because idk how to do version check properly

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/PrismarineJS/mineflayer/issues/1098, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAR437TVT4YJU4K4SUWVKHDRZAYUVANCNFSM4OK6OL6Q .

Leftier commented 4 years ago

1099

Karang commented 4 years ago

As shown in https://github.com/PrismarineJS/mineflayer/pull/1202 1.14.4 behaves exactly like other versions and for all versions: 1 = begin 2 = end This must be an error in the wiki.