Git Product home page Git Product logo

Comments (1)

MarkusBordihn avatar MarkusBordihn commented on September 16, 2024

Thanks for the report, it seems you have removed all fill items, which will cause the following crash on my test instance.

java.lang.IllegalArgumentException: bound must be positive
	at java.util.Random.nextInt(Random.java:388)
	at de.markusbordihn.dailyrewards.rewards.Rewards.calculateRewardItemsForMonth(Rewards.java:116)

I will release a fix for this, which will use minecraft:dirt as fallback in this specific case, otherwise the config looks fine for me.
You should define at least 1-2 fill items just in the case of an leap year or any other edge case were an reward item is missing.

Most of the mod items should be supported out of the box.
Every item which is not compatible or if the required mod is not installed will be automatically skipped like:

[21Sep2022 22:39:24.041] [Server thread/INFO] [Daily Rewards/]: Calculate Reward items for month 9 with 30 days ...
[21Sep2022 22:39:24.042] [Server thread/WARN] [Daily Rewards/]: Unable to find reward item torchmaster:megatorch in the registry!
[21Sep2022 22:39:24.042] [Server thread/WARN] [Daily Rewards/]: Unable to find reward item reliquary:glowing_bread in the registry!
[21Sep2022 22:39:24.042] [Server thread/WARN] [Daily Rewards/]: Unable to find reward item gobber2:gobber2_sword in the registry!
[21Sep2022 22:39:24.042] [Server thread/WARN] [Daily Rewards/]: Unable to find reward item usefulbackpacks:backpack_enderchest in the registry!
[21Sep2022 22:39:24.042] [Server thread/WARN] [Daily Rewards/]: Unable to find reward item naturalist:reddy_bear in the registry!
[21Sep2022 22:39:24.042] [Server thread/WARN] [Daily Rewards/]: Unable to find reward item alexmobs:spawn_egg_capuchin_monkey in the registry!
[21Sep2022 22:39:24.042] [Server thread/WARN] [Daily Rewards/]: Unable to find reward item reliquary:glowing_bread in the registry!
[21Sep2022 22:39:24.042] [Server thread/WARN] [Daily Rewards/]: Unable to find reward item reliquary:angelheart_vial in the registry!
[21Sep2022 22:39:24.042] [Server thread/WARN] [Daily Rewards/]: Unable to find reward item artifacts:whoopee_cushion in the registry!
[21Sep2022 22:39:24.042] [Server thread/WARN] [Daily Rewards/]: Unable to find reward item alexmobs:banana in the registry!
[21Sep2022 22:39:24.042] [Server thread/WARN] [Daily Rewards/]: Unable to find reward item reliquary:glowing_bread in the registry!
[21Sep2022 22:39:24.042] [Server thread/WARN] [Daily Rewards/]: Unable to find reward item hammers:enhanced_netherite_hammer in the registry!
[21Sep2022 22:39:24.042] [Server thread/WARN] [Daily Rewards/]: Unable to find reward item artifacts:helium_flamingo in the registry!
[21Sep2022 22:39:24.042] [Server thread/WARN] [Daily Rewards/]: Unable to find reward item supplementaries:bomb in the registry!
[21Sep2022 22:39:24.042] [Server thread/WARN] [Daily Rewards/]: Unable to find reward item reliquary:glowing_bread in the registry!
[21Sep2022 22:39:24.042] [Server thread/WARN] [Daily Rewards/]: Unable to find reward item artifacts:eternal_steak in the registry!
[21Sep2022 22:39:24.042] [Server thread/WARN] [Daily Rewards/]: Unable to find reward item mob_catcher:diamond_mob_catcher in the registry!
[21Sep2022 22:39:24.042] [Server thread/WARN] [Daily Rewards/]: Unable to find reward item gobber2:gobber2_sword_nether in the registry!
[21Sep2022 22:39:24.042] [Server thread/INFO] [Daily Rewards/]: Found 17 missing days without any items, will try to use fill items ...

from bos-daily-rewards.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.